Skip to content

responseType isn't being set properly in AuthConfig constant #430

@bvorjohan

Description

@bvorjohan

I am trying to use this with the Spotify API, and I have my AuthConfig constant set as

{
  responseType: 'code',
  clientId: '43566db1a0f74438838b74fa71d658a4',
  redirectUri: window.location.origin + '/index.html',
  loginUrl: 'https://accounts.spotify.com/authorize',
}

however, the API that actually gets run is

https://accounts.spotify.com/authorize?
response_type=id_token%20token&
client_id=43566db1a0f74438838b74fa71d658a4&
state=NWoRQ6LkhH5jt9wE5vwpYdNrqEoDcGmBlTA62tBl&
redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Findex.html&
scope=openid%20profile&
nonce=NWoRQ6LkhH5jt9wE5vwpYdNrqEoDcGmBlTA62tBl

it looks like the module isn't accepting the responseType correctly, since the API call sets response_type=id_token token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions