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
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
}
});
}
}