datasquirel/dist/package-shared/functions/api/social-login/googleLogin.d.ts
Benjamin Toby 6593047efd Updates
2025-04-18 12:06:15 +01:00

23 lines
572 B
TypeScript

type Param = {
usertype: string;
foundUser: any;
isSocialValidated: boolean;
isUserValid: boolean;
reqBody: any;
serverRes: any;
loginFailureReason: any;
};
/**
* # Google Login
*/
export default function googleLogin({ usertype, foundUser, isSocialValidated, isUserValid, reqBody, serverRes, loginFailureReason, }: Param): Promise<{
isGoogleAuthValid: boolean;
newFoundUser: null;
loginFailureReason: any;
} | {
isGoogleAuthValid: boolean;
newFoundUser: any;
loginFailureReason?: undefined;
} | undefined>;
export {};