Skip to main content

encodeBase64url() function

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Encodes the bytes of an input string to base64url

Signature:

export declare function encodeBase64url(s: string): string

Parameters

ParameterTypeDescription
sstring

the original string

This API may change without a BREAKING CHANGE notice.

Returns:

string