Update login pipeline. Limit login to only password

This commit is contained in:
2026-09-12 14:20:07 +01:00
parent 4d75af0418
commit 9cfbde9c9a
30 changed files with 145 additions and 1068 deletions
+1 -34
View File
@@ -35,7 +35,6 @@ export type PagePropsType = {
persons?: BUN_SQLITE_WGUI_USERS_JOIN[] | null;
environment?: string;
envs?: {
GOOGLE_CLIENT_ID?: string;
R2_PUBLIC_DOMAIN?: string;
PAYSTACK_PUBLIC_KEY?: string;
};
@@ -157,10 +156,7 @@ export type UserType = (typeof UserTypes)[number]["value"];
export type LoginFormObject = {
username_or_email?: string;
};
export type SSOFormObject = {
code?: string;
password?: string;
};
export type ContactFormObject = {
@@ -178,8 +174,6 @@ export type ApiReqParams<
email_or_username?: string;
password?: string;
};
google_token?: string;
sso_code?: string;
contact?: {
name?: string;
email?: string;
@@ -228,33 +222,6 @@ export type ApiReqParams<
media?: BUN_SQLITE_WGUI_MEDIA;
};
export type GoogleCredentialResponse = {
credential?: string;
};
export type GoogleWindow = globalThis.Window & {
google?: {
accounts?: {
id?: {
initialize: (params: {
client_id: string;
callback: (response: GoogleCredentialResponse) => void;
}) => void;
renderButton: (
parent: HTMLElement,
options: Record<string, string | number | boolean>,
) => void;
};
};
};
};
export type SSOAuth = {
user_id: number;
sso_code: string | number;
email?: string | null;
};
export type UserAuthReturn = {
success: boolean;
msg?: string;