Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
client_id=618103802046-48c83lio7h0fl4spoqbb6if1g2ol94i4.apps.googleusercontent.com
SERVER SIDE INFO
https://developers.google.com/identity/protocols/OAuth2WebServer
Get Client ID :
goto https://console.developers.google.com -> select project
goto credential. Crete credential -> OAuth Client ID
Playground
https://developers.google.com/oauthplayground
*/
@domain()
export class GoogleProfile {
constructor(
public id: string,
public family_name: string,
public given_name: string,
public locale: string,
public name: string,
public picture: string,
) { }
}
@domain()
export class GoogleLoginStatus implements SocialLoginStatus {
constructor(
public status: "Success" | "Failed",
@val.optional()
*/
@domain()
export class GoogleProfile {
constructor(
public id: string,
public family_name: string,
public given_name: string,
public locale: string,
public name: string,
public picture: string,
) { }
}
@domain()
export class GoogleLoginStatus implements SocialLoginStatus {
constructor(
public status: "Success" | "Failed",
@val.optional()
public error?: any,
@val.optional()
public data?: GoogleProfile
) { }
}
export class GoogleProvider implements SocialAuthProvider {
tokenEndPoint = "https://www.googleapis.com/oauth2/v4/token"
profileEndPoint = "https://www.googleapis.com/oauth2/v2/userinfo"
constructor(
public clientId: string,