Skip to content

Error while getting session token #18

Description

@luym11

While trying to obtain a session token, it returns:

UnhandledPromiseRejectionWarning: StatusCodeError: 400 - {"error":"invalid_request","error_description":"The provided session_token_code is invalid"}

However, I think I correctly obtained Client ID, Login Page Token Code and Login Page Token Code Verifier already, and filled them in the correct places.

Maybe Nintendo changed their APIs? But I did not find any information about that.

Activity

  1. alessbarb commented on Jan 27, 2022

    @alessbarb

    I'm having the same issue. I'm following the instructions with curl commands:

    curl -X POST https://accounts.nintendo.com/connect/1.0.0/api/session_token 
                 -H "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60" 
                 -d "client_id=71b963c1b7b6d119"
                 -d "session_token_code=XXXXXXXXXXXXXX"
                 -d "session_token_code_verifier=YYYY"
    

    I'm breaking my head trying to find a solution, but there is nothing documented through the web, or I can't find it.

  2. frozenpandaman commented on Aug 27, 2022

    @frozenpandaman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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