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