Functions
digestSha256
- digestSha256(payload: string): Promise<Uint8Array>
Parameters
Returns Promise<Uint8Array>
generatePKCEChallenge
- generatePKCEChallenge(entropy?: number): Promise<PkcePair>
Parameters
Returns Promise<PkcePair>
importJWK
- importJWK(jwk: JWK): Promise<CryptoKey>
Parameters
Returns Promise<CryptoKey>
randomBytes
- randomBytes(count: number): Uint8Array
Parameters
Returns Uint8Array
signCompactJws
- signCompactJws(alg: "ES384" | "RS384", privateKey: CryptoKey, header: any, payload: any): Promise<string>
Parameters
alg: "ES384" | "RS384"
privateKey: CryptoKey
header: any
payload: any
Returns Promise<string>