(token: string)
| 6 | const TOKEN_BYTES = 32 |
| 7 | |
| 8 | export function hashIntegrationToken(token: string): string { |
| 9 | return createHash('sha256').update(token).digest('hex') |
| 10 | } |
| 11 | |
| 12 | function getTokenPreview(token: string): string { |
| 13 | return `${token.slice(0, 5)}...${token.slice(-4)}` |
no test coverage detected