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
+23
View File
@@ -1167,6 +1167,7 @@ export type APIGoogleLoginFunctionParams = {
additionalData?: { [key: string]: string | number };
debug?: boolean;
loginOnly?: boolean;
apiUserId?: string | number;
};
export type APIGoogleLoginFunction = (
@@ -1187,6 +1188,7 @@ export type HandleSocialDbFunctionParams = {
debug?: boolean;
loginOnly?: boolean;
social_id?: string | number;
apiUserId?: string | number;
};
export type HandleSocialDbFunctionReturn = {
@@ -2348,6 +2350,7 @@ export const UserAPIAuthActions = [
"delete",
"send-email-code",
"reset-password",
"google-login",
] as const;
export type GrabUserAPIPathParams = {
@@ -2451,3 +2454,23 @@ export type ApiUpdateUserParams<
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;
};