fix(auth-web): handle verify-email token links and show auth feedback
Some checks failed
CI / test (push) Failing after 1m56s
Some checks failed
CI / test (push) Failing after 1m56s
This commit is contained in:
@@ -5,6 +5,10 @@ export async function registerRequest(email: string, name: string, username: str
|
||||
await http.post("/auth/register", { email, name, username, password });
|
||||
}
|
||||
|
||||
export async function verifyEmailRequest(token: string): Promise<void> {
|
||||
await http.post("/auth/verify-email", { token });
|
||||
}
|
||||
|
||||
export async function loginRequest(email: string, password: string, otpCode?: string, recoveryCode?: string): Promise<TokenPair> {
|
||||
const { data } = await http.post<TokenPair>("/auth/login", {
|
||||
email,
|
||||
|
||||
Reference in New Issue
Block a user