core.encodebase64url
Home > @medplum/core > encodeBase64Url
encodeBase64Url() function
Encodes a string into Base64URL format. This is the encoding required for JWT parts.
Signature:
export declare function encodeBase64Url(data: string): string;
Parameters
Parameter | Type | Description |
---|---|---|
data | string | The unencoded input string. |
Returns:
string
The Base64URL encoded string.