(code: string)
| 95 | }; |
| 96 | |
| 97 | const hashEmailCode = (code: string) => |
| 98 | crypto |
| 99 | .createHash("sha256") |
| 100 | .update(`${code}${serverEnv().NEXTAUTH_SECRET}`) |
| 101 | .digest("hex"); |
| 102 | |
| 103 | const sendMobileEmailCode = async (email: string, code: string) => { |
| 104 | if (!serverEnv().RESEND_API_KEY) { |