@fanoutio/grip
Version:
GRIP Interface Library
13 lines • 537 B
TypeScript
import * as jose from 'jose';
import { JwkKey, PemKey } from '../utilities/index.js';
import { type IAuth } from './IAuth.js';
export declare class Jwt implements IAuth {
private readonly _claim;
private readonly _key;
private readonly _alg?;
constructor(claim: Record<string, string>, key: Uint8Array | jose.KeyLike | PemKey | JwkKey, alg?: string);
buildHeader(): Promise<string>;
getClaim(): Record<string, string>;
getKey(): Uint8Array | jose.KeyLike | PemKey | JwkKey;
}
//# sourceMappingURL=Jwt.d.ts.map