-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
Description
π Description
Users should be either redirected or shown a prompt to switch to the correct region, if they are known to be using an another data residency.
Most common case would be an user in the EU region, due to the US region being the default and the one the website currently links to.
This could be done at least in a few ways:
- Use a cross-domain cookie (.novu.co) to store the residency the user uses. This is the way PostHog does this. It would also allow to link the user to the correct residency right on the website.
(PostHog takes this pretty far with even the API endpoints changing in the documentation based on user residency) - Save into localStorage or similar place if the user manually switches residency.
- Make a request to EU request's Clerk and see if the user is logged in there
Redirecting should be in a way the user can cancel it (if they use multiple regions). If the user manually switches from a residency to an another, they should not be redirected or shown any prompts.
See how PostHog has done this:
π Reproduction steps
No response
π Expected behavior
No response
π Provide any additional context for the Bug.
No response
π Have you spent some time to check if this bug has been raised before?
- I checked and didn't find similar issue
π’ Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
