Updates
This commit is contained in:
@@ -45,7 +45,7 @@ module.exports = async function apiGoogleLogin({
|
||||
if (!database || typeof database != "string" || database?.match(/ /)) {
|
||||
return {
|
||||
success: false,
|
||||
user: undefined,
|
||||
payload: undefined,
|
||||
msg: "Please provide a database slug(database name in lowercase with no spaces)",
|
||||
};
|
||||
}
|
||||
@@ -89,7 +89,7 @@ module.exports = async function apiGoogleLogin({
|
||||
|
||||
return {
|
||||
success: false,
|
||||
user: undefined,
|
||||
payload: undefined,
|
||||
msg: error.message,
|
||||
};
|
||||
}
|
||||
|
||||
Vendored
+1
-4
@@ -1057,10 +1057,7 @@ export type APIGoogleLoginFunctionParams = {
|
||||
database: string;
|
||||
additionalFields?: string[];
|
||||
};
|
||||
export type APIGoogleLoginFunctionReturn = {
|
||||
dsqlUserId?: number | string;
|
||||
} & HandleSocialDbFunctionReturn;
|
||||
export type APIGoogleLoginFunction = (params: APIGoogleLoginFunctionParams) => Promise<APIGoogleLoginFunctionReturn>;
|
||||
export type APIGoogleLoginFunction = (params: APIGoogleLoginFunctionParams) => Promise<APILoginFunctionReturn>;
|
||||
/**
|
||||
* Handle Social DB Function
|
||||
*/
|
||||
|
||||
@@ -1269,13 +1269,9 @@ export type APIGoogleLoginFunctionParams = {
|
||||
additionalFields?: string[];
|
||||
};
|
||||
|
||||
export type APIGoogleLoginFunctionReturn = {
|
||||
dsqlUserId?: number | string;
|
||||
} & HandleSocialDbFunctionReturn;
|
||||
|
||||
export type APIGoogleLoginFunction = (
|
||||
params: APIGoogleLoginFunctionParams
|
||||
) => Promise<APIGoogleLoginFunctionReturn>;
|
||||
) => Promise<APILoginFunctionReturn>;
|
||||
|
||||
/**
|
||||
* Handle Social DB Function
|
||||
|
||||
Reference in New Issue
Block a user