Hi konrad
I was able to use auth0/react sdk in both my extension and web app. I am only allowing users to login via web. After that I simply call getAccessTokenSilently
on extension load which calls the authorize API and returns token after posting message on parent window.
Everything is working fine if my extension is opening on same root domain as custom domain, because i have added them in redirectURI
To allow getAccessTokenSilently
call work properly on other domains like mail.google.com
what redirectURI
should i set in Auth0 init.
I tried setting chrome-extension://id
in redirectURI but that gives error of postmessage as the response from authorize is not able to post a message on chrome-extension://id
@jannik i saw you other post to sync auth state b/w web and extension. Can you please help me out on this please?
Any help appreciated.
Thanks