(verifier: string)
| 13 | } |
| 14 | |
| 15 | export function generateCodeChallenge(verifier: string): string { |
| 16 | const hash = createHash('sha256') |
| 17 | hash.update(verifier) |
| 18 | return base64URLEncode(hash.digest()) |
| 19 | } |
| 20 | |
| 21 | export function generateState(): string { |
| 22 | return base64URLEncode(randomBytes(32)) |
nothing calls this directly
no test coverage detected