(bytes: Uint8Array)
| 128 | } |
| 129 | |
| 130 | function encodeBase64url(bytes: Uint8Array): string { |
| 131 | return Buffer.from(bytes.buffer, bytes.byteOffset, bytes.byteLength).toString('base64url') |
| 132 | } |
| 133 | |
| 134 | function decodeBase64url(str: string): Uint8Array { |
| 135 | return Buffer.from(str, 'base64url') |