Hi tere,
Here is the situation:
This works:
I have setup my production site(eg: www.production.com
) with the custom domain like auth.production.com
at Auth0 dashboard. After authorizing from Auth0 it goes back to www.production.com
successfully on all browsers and iOS devices.
This doesn’t work
However, when I test Auth0 Universal Login on my staging domain(eg: www.staging.com
) this doesn’t work at all.
Before this post, I have tried all relevant solutions:
1 Set up rotational refresh tokens and use useRefreshTokens={true}
and cacheLocation="localstorage"
in my latest Auth0 React SDK "@auth0/auth0-react": "^1.8.0"
.
See in this link
community.auth0.com/t/silent-authorization-not-working-after-login-signup/37114
2 Double checked on Refresh Token Rotation
3 Went through Troubleshoot Renew Tokens When Using Safari
I made sure when I turned off Prevent cross-site tracking my staging domain worked.
So, after all that, can you please give me some directions on develop
and staging
envs solutions? What if those domains are all separate without sharing the same parent domain?
Do I have to purchase another tenant for different envs? I’m afraid that this is going to make the development process very complicated as I have to do data transition a lot!
Or, can I have multiple custom domains for all my different envs?
Thanks!