( fingerprintId: string, expiresAt: string, secret: string, )
| 14 | export type User = z.infer<typeof userSchema> |
| 15 | |
| 16 | export const genAuthCode = ( |
| 17 | fingerprintId: string, |
| 18 | expiresAt: string, |
| 19 | secret: string, |
| 20 | ) => |
| 21 | crypto |
| 22 | .createHash('sha256') |
| 23 | .update(secret) |
| 24 | .update(fingerprintId) |
| 25 | .update(expiresAt) |
| 26 | .digest('hex') |
no outgoing calls
no test coverage detected