(body: string, secret: string | Buffer)
| 20 | * {@link ../compare | safeCompare} for timing-safe comparison. |
| 21 | */ |
| 22 | export function hmacSha256Base64(body: string, secret: string | Buffer): string { |
| 23 | return createHmac('sha256', secret).update(body, 'utf8').digest('base64') |
| 24 | } |
no outgoing calls
no test coverage detected