Closed GRX closed 8 months ago
Addendum: I just logged out of the Parental app, then logged back in and it prompted me with a Captcha (select n
in the picture).
Could token retrieval fail due to catpcha(s)?
Did you try not closing the tab until after you've done the setup in HA?
Yes, I've also tried that. Both methods immediately pompt the log with ValueError: Invalid token provided.
Captcha shouldn't matter as I believe that is before the token exchange is actually done, but then again that might be used to validate a response.
This error comes from the format of the link provided though. Will see if Nintendo have changed it.
Nintendo have changed the format of the token, so will release a patch shortly to resolve (hopefully)
Current format: npf54789befb391a838://auth#session_token_code=(obfuscated)&state=(obfuscated)&session_state=(obfuscated)
I'm also based from the EU, idk if that differs anything :)
Nintendo have changed the format of the token, so will release a patch shortly to resolve (hopefully)
You were already ahead of me, thank you for the assistance! I will await the new version patiently :)
Thats interesting... you have a state :/
For context, I just auth'd and the format I got back was:
npf54789befb391a838://auth#session_token_code=(redacted)&session_state=(redacted)
Will have to make it a little more clever lol.
I tried by just removing the state=
query param, but sadly, that was too easy lol
I'm slightly amazed its taken this long to be honest for any "breaking" changes like this. Even then you might be able to get away with it by making sure the format is:
npf54789befb391a838://auth#session_state=...&session_token_code=...&state=...
fortunately this token is only ever used once, and is replaced after login is successful so once you are setup, you wouldn't have this specific problem again.
I'm slightly amazed its taken this long to be honest for any "breaking" changes like this. Even then you might be able to get away with it by making sure the format is:
npf54789befb391a838://auth#session_state=...&session_token_code=...&state=...
This was the trick indeed. I'm now connected.
Thanks both of you.
The manual change to npf54789befb391a838://auth#session_state=...&session_token_code=...&state=...
solved the problem for me as well.
Also I learned from GRX to just copy and paste the link entirely. If this is in the doc I missed it, as a complete newbee it didn't occur to me this is what I was supposed to do. I clicked it and nothing happened at first. Thanks for the learning opportunity you provided!
Resolved in 2024.3.0 (currently released as beta)
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4894 Installed Version | 1.34.0 Stage | running Available Repositories | 1406 Downloaded Repositories | 16 HACS Data | okHome Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okDashboards
dashboards | 1 -- | -- resources | 0 mode | auto-genRecorder
oldest_recorder_run | February 27, 2024 at 3:59 PM -- | -- current_recorder_run | February 27, 2024 at 11:53 PM estimated_db_size | 7.19 MiB database_engine | mysql database_version | 11.3.2Checklist
Nintendo Parental Controls mobile app
Describe the issue
I cannot seem to add the integration, The log keeps stating
Invalid token provided
Reproduction steps
Unknown error occurred
Debug logs
Diagnostics dump
No response