This commit is contained in:
Benjamin Toby
2025-07-10 12:13:03 +01:00
parent 5ab079f687
commit f9725a1d6f
22 changed files with 262 additions and 177 deletions
+24 -1
View File
@@ -965,6 +965,7 @@ export type APIGoogleLoginFunctionParams = {
};
debug?: boolean;
loginOnly?: boolean;
apiUserId?: string | number;
};
export type APIGoogleLoginFunction = (params: APIGoogleLoginFunctionParams) => Promise<APILoginFunctionReturn>;
/**
@@ -981,6 +982,7 @@ export type HandleSocialDbFunctionParams = {
debug?: boolean;
loginOnly?: boolean;
social_id?: string | number;
apiUserId?: string | number;
};
export type HandleSocialDbFunctionReturn = {
success: boolean;
@@ -1808,7 +1810,7 @@ export type GrabUserResourceParams<T extends {
targetID?: string | number;
};
export declare const UserAPIParadigms: readonly ["auth", "crud"];
export declare const UserAPIAuthActions: readonly ["login", "get", "signup", "update", "logout", "refresh", "verify", "send-verification", "delete", "send-email-code", "reset-password"];
export declare const UserAPIAuthActions: readonly ["login", "get", "signup", "update", "logout", "refresh", "verify", "send-verification", "delete", "send-email-code", "reset-password", "google-login"];
export type GrabUserAPIPathParams = {
apiVersion?: string;
paradigm?: (typeof UserAPIParadigms)[number];
@@ -1903,4 +1905,25 @@ export type ApiUpdateUserParams<T extends DSQL_DATASQUIREL_USERS = DSQL_DATASQUI
dbSchema?: DSQL_DatabaseSchemaType;
dbUserId?: string | number;
};
export type GoogleAuthParams = {
apiKey?: string;
token: string;
database?: string;
response?: ServerResponse;
encryptionKey?: string;
encryptionSalt?: string;
additionalFields?: string[];
additionalData?: {
[s: string]: string | number;
};
apiUserID?: string | number;
debug?: boolean;
secureCookie?: boolean;
loginOnly?: boolean;
/**
* Login without calling external API
*/
useLocal?: boolean;
apiVersion?: string;
};
export {};
+1
View File
@@ -405,4 +405,5 @@ exports.UserAPIAuthActions = [
"delete",
"send-email-code",
"reset-password",
"google-login",
];