Angular App - Adding Connection Parameter to Authorize Request

Problem statement

How can a connection parameter be added to the authorize request made with the auth0-angular SDK?


The release of V2 of auth0-angular came with the introduction of authorizationParams, which is a more structured approach to providing parameters - including the connection parameter as well as any other custom parameters - to Auth0.

Here is an example of adding the connection parameter by specifying it in authorizationParams with loginWithRedirect:

  authorizationParams: {
    connection: 'connection_name'

Related References: