@authduo/authduo
Version:
Free User-sovereign Authentication for the World
11 lines (10 loc) • 451 B
TypeScript
import { PubkeyData } from "./types.js";
import { TokenPayload, TokenVerifyOptions } from "./jwt/types.js";
export declare class Pubkey {
readonly thumbprint: string;
readonly publicKey: CryptoKey;
constructor(thumbprint: string, publicKey: CryptoKey);
static fromData(data: PubkeyData): Promise<Pubkey>;
toData(): Promise<PubkeyData>;
verify<P extends TokenPayload>(token: string, options?: TokenVerifyOptions): Promise<P>;
}