Please include the following information in your post:
- Which SDK this is regarding: auth0-react
- SDK Version: e.g. 1.1.0
- Platform Version: e.g. Node 12.19.0
- Code Snippets/Error Messages/Supporting Details/Screenshots:
I have an app which at some point I will probably split into two apps, but for the sake of expediency at the moment have everything in one code base. Thus I have something like this:
Each AuthProvider wraps an Auth0Provder and points to its own app, that is they have different client IDs.
I was hoping that everything inside each AuthProvider was self contained, however when I have both AuthProviders I’m getting some errors. When I remove one, then everything works fine. So, it looks like they are stepping on each others toes, as it were. My initial guess is that they may be saving the tokens to the same cache location, though I haven’t invested this yet. Before I get too far down this rabbit hole, I’d like to know whether it is even possible to have more than one Auth0Provider within an app. If so, any hints on getting them to play nice with each other?