(buffer: ArrayBuffer)
| 30 | } |
| 31 | |
| 32 | function base64UrlEncode(buffer: ArrayBuffer): string { |
| 33 | const bytes = new Uint8Array(buffer) |
| 34 | const binary = String.fromCharCode(...bytes) |
| 35 | return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "") |
| 36 | } |
| 37 | |
| 38 | export interface IdTokenClaims { |
| 39 | chatgpt_account_id?: string |
no outgoing calls
no test coverage detected