Forum Discussion
ward1992
10 months agoHonored Guest
Got Token not authorized for user xxx and organization xxx during Account Linking
Hi Support,
Currently we are following the document to do account linking, but now we always got this error
{\\\"error\\\":{\\\"message\\\":\\\"Token not authorized for user 103875445938599 and organization 102879835121857.\\\",\\\"type\\\":\\\"OCApiException\\\",\\\"code\\\":10,\\\"error_data\\\":{},\\\"fbtrace_id\\\":\\\"AS4dDquAP4jQRofb-DZuzBm\\\"}}\""}
Could you please help explain what caused this issue?
Also I had a try mentioned in this document, if I do step 5 immediately after step 4, I will get the token not authorized error, but if I add a delay like 5 seconds before step 5, then the request will always be successful, it seems that the oauth token from step 4 needs some time to take effect in Oculus?
Thanks
1 Reply
Replies have been turned off for this discussion
- riemaeker.xyzHonored Guest
FWIW I have the exact same issue. When I fetch the user profile immediately after receiving tokens I have about a 50% success rate: either it works or I get the same error you have.
When I add a small delay (1 sec seems to be enough here) or retry the request it consistently works. So there's a reliable workaround but still kind of crappy this happens β at the least it should be mentioned in the account linking documentation.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 months ago