feat(auth,privacy,web): step-by-step login, privacy settings persistence, TOTP QR, and API docs
Some checks failed
CI / test (push) Failing after 22s
Some checks failed
CI / test (push) Failing after 22s
This commit is contained in:
@@ -33,6 +33,18 @@ export async function revokeAllSessions(): Promise<void> {
|
||||
await http.delete("/auth/sessions");
|
||||
}
|
||||
|
||||
export interface EmailStatusResponse {
|
||||
email: string;
|
||||
registered: boolean;
|
||||
email_verified: boolean;
|
||||
twofa_enabled: boolean;
|
||||
}
|
||||
|
||||
export async function checkEmailStatus(email: string): Promise<EmailStatusResponse> {
|
||||
const { data } = await http.get<EmailStatusResponse>("/auth/check-email", { params: { email } });
|
||||
return data;
|
||||
}
|
||||
|
||||
export interface TwoFactorSetupResponse {
|
||||
secret: string;
|
||||
otpauth_url: string;
|
||||
|
||||
Reference in New Issue
Block a user