UNPKG

@authduo/authduo

Version:

Free User-sovereign Authentication for the World

13 lines (12 loc) 515 B
import { Pubkey } from "./pubkey.js"; import { KeypairData } from "./types.js"; import { TokenPayload } from "./jwt/types.js"; export declare class Keypair extends Pubkey { readonly privateKey: CryptoKey; constructor(thumbprint: string, publicKey: CryptoKey, privateKey: CryptoKey); static generate(): Promise<Keypair>; static fromData(data: KeypairData): Promise<Keypair>; toData(): Promise<KeypairData>; toPubkey(): Pubkey; sign<P extends TokenPayload>(payload: P): Promise<string>; }