feat(auth): wire verification code endpoints
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
export function sendForgotPasswordCode(email: string): never {
|
||||
void email
|
||||
throw new Error("Not implemented")
|
||||
import { httpJson } from "./http"
|
||||
|
||||
export async function sendForgotPasswordCode(email: string): Promise<void> {
|
||||
await httpJson<unknown>("/api/v1/auth/forgot-password/send", {
|
||||
method: "POST",
|
||||
json: { email },
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user