Skip to content

✨ Polishing: Users who are logged into another data residency (EU) should be redirected #8200

@raikasdev

Description

@raikasdev

πŸ“œ 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:

  1. 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)
  2. Save into localStorage or similar place if the user manually switches residency.
  3. 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:

Image

πŸ‘Ÿ 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXpolishingCreated by Linear-GitHub Sync

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions