Inject authorization token from different context

  • Hi everyone! I’m trying take an Auth0 token from one context (Mobile) and pass it to another context (Web / React). My use case is that I would like to render a web view within Mobile and have the user’s authentication be recognized.

  • Is this something we can set up in the web code? I’m imagining somehow injecting my JWT into the Auth0 client so that it can recognize it.

  • Or do I need to configure something inside the Auth0 platform, like saying this is an external tokens and then letting the Auth0 client set up it’s own token?

  • Thank you!

Hi @juan.caicedo,

Welcome to the Auth0 Community and sorry for the late reply!

Each application in Auth0 issues its own set of tokens, so transferring a token from one application to another for authentication purposes is not a feasible approach. In order for a user not to have to re-authenticate after being already logged in on one application we recommend implementing Single Sign-On.

You can check out this community post that provides information on the matter, as well as multiple documentation links that are relevant for achieving this scenario.

I hope this helps others too!
Thanks,
Remus

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.