PERS SDK - v2.3.26 / Exports / DPoPCryptoProvider
▸ generateKeyPair(options?): Promise<DPoPKeyPair>
Generates a new key pair (ES256 recommended)
| Name | Type | Description |
|---|---|---|
options? | Object | - |
options.extractable? | boolean | Whether the private key can be extracted. Default true. |
Promise<DPoPKeyPair>
core/auth/dpop/dpop.types.ts:19
▸ signProof(payload, keyPair): Promise<string>
Signs the DPoP proof
| Name | Type | Description |
|---|---|---|
payload | Record<string, any> | Pre-constructed payload without standard claims that crypto might handle or raw claims |
keyPair | DPoPKeyPair | The key pair to sign with |
Promise<string>
core/auth/dpop/dpop.types.ts:26
▸ hashAccessToken(accessToken): Promise<string>
Hashes an access token for the 'ath' claim (SHA-256 base64url)
| Name | Type |
|---|---|
accessToken | string |
Promise<string>