I am using expo tools for building the react-native application and using the bundled version I could build a chrome extension.
For the web version I have followed the Auth0 steps and added necessary callback urls in Auth0 account.
This will open the auth0 popup in web and redirect urls are handled properly.
But the above thing won’t work for chrome-extension as it doesn’t deal with urls. I need to do something similar as shown in above code if application is running as chrome extension.
The problems I faced after using auth0-chrome plugin
- Login popup opens in a separate window and upon successful login, app loads in the same popup not in chrome-extension.
- Login popup opens after 3-4 clicks and is inconsistent always.
Throws the following error when popup fails to open
Uncaught (in promise) TypeError: Cannot read property ‘create’ of undefined
- So main issue which I am unable to understand is how do I pass the control back to the extension upon successful login?
I am new to this stuff and I tried my best to explain what’s happening. Please let me know if you need any specific details.