Create connection with google

Hi,
Im doing UI alone and all connections work with auth0.
Now I’m trying to connect with Google, so i created a button and i need this button to open the connection with Google using auth0.
Someone can help me with how I can make this connection, i am stuck.
My project works with Angular and Nodejs

Thank you.

Hey there @eden.amram !

You will want to look into passing the connection param to loginWithRedirect - Something like:

export class LoginComponent {
  constructor(public auth: AuthService) {}

  loginWithGoogle(): void {
    this.auth.loginWithRedirect({
      authorizationParams: {
        connection: 'google-oauth2', // Replace with your Google connection name
        // Other authorization parameters can be added here if needed
      }
    });
  }
}

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.