Skip to main content
New Participant
March 10, 2025

Got Token not authorized for user xxx and organization xxx during Account Linking

  • March 10, 2025
  • 1 reply
  • 572 views

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

    This topic has been closed for replies.

    1 reply

    New Participant
    May 27, 2025

    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.