Updates
This commit is contained in:
Vendored
+24
-1
@@ -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 {};
|
||||
|
||||
Vendored
+1
@@ -405,4 +405,5 @@ exports.UserAPIAuthActions = [
|
||||
"delete",
|
||||
"send-email-code",
|
||||
"reset-password",
|
||||
"google-login",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user