(token: string | undefined)
| 197 | } |
| 198 | |
| 199 | export function tokenFingerprint(token: string | undefined): string { |
| 200 | if (!token) return 'absent'; |
| 201 | const sha = createHash('sha256').update(token).digest('hex').slice(0, 8); |
| 202 | return `present(len=${token.length}, sha256=${sha})`; |
| 203 | } |
| 204 | |
| 205 | export function debugTokenClaims( |
| 206 | label: string, |
no test coverage detected