Skip to content

Error: Invalid authorization code with 'valid' authorization code #443

@ianskenny

Description

@ianskenny

Hi.

I'm not sure if this is the right way to ask you about this but here goes.

I think this is most likely a Spotify issue rather than an issue with your library, but I thought I would ask in case you had any insight.

I am attempting to authorize my app to use my own Spotify account. I have successfully launched the Spotify authorization page and receive an authorization code at my callback url.

The issue is that this authorization code then appears to be rejected at the next stage, when I try and get the access and refresh codes. The library throws a BadRequestException with the message 'Invalid authorization code' (even though it is literally the code Spotify just gave me). As far as I can tell, the request sent by the library is well-formed. I regenerated the client secret but that made no difference.

I wonder if you have seen anything like this before or could offer any other insight?

Many thanks,

Ian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions