Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while getting session token #18

Open
luym11 opened this issue May 1, 2021 · 2 comments
Open

Error while getting session token #18

luym11 opened this issue May 1, 2021 · 2 comments

Comments

@luym11
Copy link

luym11 commented May 1, 2021

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.

@alessbarb
Copy link

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.

@frozenpandaman
Copy link

My logic/code in https://github.com/frozenpandaman/splatnet2statink/blob/master/iksm.py should always be up-to-date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants