Encodes a Uint8Array to a URL-safe Base64 string (no padding).
Implemented on top of the audited @scure/base codec (A3) — a crypto
library must not hand-roll its own base64 alphabet handling. The
output is byte-identical to the previous hand-rolled encoder
(unpadded URL-safe Base64), so token serialization does not change.
Parameters
bytes: Uint8Array
The bytes to encode.
Returns string
The unpadded URL-safe Base64 string ('' for empty input).
Encodes a Uint8Array to a URL-safe Base64 string (no padding).
Implemented on top of the audited
@scure/basecodec (A3) — a crypto library must not hand-roll its own base64 alphabet handling. The output is byte-identical to the previous hand-rolled encoder (unpadded URL-safe Base64), so token serialization does not change.