( req: MonkeyRequest<undefined, ForgotPasswordEmailRequest>, )
| 246 | } |
| 247 | |
| 248 | export async function sendForgotPasswordEmail( |
| 249 | req: MonkeyRequest<undefined, ForgotPasswordEmailRequest>, |
| 250 | ): Promise<MonkeyResponse> { |
| 251 | const { email, captcha } = req.body; |
| 252 | await verifyCaptcha(captcha); |
| 253 | await authSendForgotPasswordEmail(email); |
| 254 | return new MonkeyResponse( |
| 255 | "Password reset request received. If the email is valid, you will receive an email shortly.", |
| 256 | null, |
| 257 | ); |
| 258 | } |
| 259 | |
| 260 | export async function deleteUser(req: MonkeyRequest): Promise<MonkeyResponse> { |
| 261 | const { uid } = req.ctx.decodedToken; |
nothing calls this directly
no test coverage detected