Method to Convert ArrayBuffer to Base64 string
The buffer to convert
A Base64 string
Custom atob implementation to parse jwt token
Method to Convert Base64 string to ArrayBuffer
A Base64 string
Array Buffer
@example
base64urlencode([]);
Convert decimal to hexadecimal
decimal number
@example
dec2hex(32);
Method to decrypt a cipher text using a CryptoKey
The CryptoKey to export
A promise that resolves to a new JWK
Method to derive a CryptoKey from a string
The key to derive
A promise that resolves to a new JWK
Method to encrypt a plaintext string using the provided CryptoKey
The CryptoKey to export
A promise that resolves to a new JWK
To generate the code challenge
code verifier
@example
generateCodeChallengeFromVerifier('dfd7fe9fff84d20091bd6c');
To generate the code verifier
@example
generateCodeVerifier();
Method to generate a new AES-GCM key
A promise that resolves to a new CryptoKey
Method to import a JWK (JSON Web Key) as a CryptoKey
The JWK to import
A promise that resolves to a new CryptoKey
Parse jwt token to extract user data
input jwt token string
Code verifier
@example
sha256('dfd7fe9fff84d20091bd6c');
Generated using TypeDoc
To generate code verifier and code challenge