( fingerprintId: string, expiresAt: string, fingerprintHash: string, )
| 12 | } |
| 13 | |
| 14 | export function buildCliAuthCode( |
| 15 | fingerprintId: string, |
| 16 | expiresAt: string, |
| 17 | fingerprintHash: string, |
| 18 | ): string { |
| 19 | return `${fingerprintId}.${expiresAt}.${fingerprintHash}` |
| 20 | } |
| 21 | |
| 22 | export function isOpaqueCliAuthCodeToken(authCode: string): boolean { |
| 23 | return OPAQUE_CLI_AUTH_CODE_TOKEN_RE.test(authCode.trim()) |
no outgoing calls
no test coverage detected