* Convert BufferSource to string
(buffer: BufferSource)
| 50 | * Convert BufferSource to string |
| 51 | */ |
| 52 | function arrayBufferToString(buffer: BufferSource): string { |
| 53 | const decoder = new TextDecoder(); |
| 54 | return decoder.decode(buffer); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Import the JWT secret as a CryptoKey for HMAC operations |