Skip to content

Overriding NEXTAUTH_URL during runtime for multitenancyΒ #8151

@rajat1saxena

Description

@rajat1saxena

Question πŸ’¬

Per this reply, I can override NEXTAUTH_URL dynamically and I've tested the same in my multitenant app and it is working correctly.

Someone in the same thread mentioned that this approach isn't thread safe. Is it really a concern here and is this a good way to accommodate multi-tenancy since it is not supported officially as of now?

How to reproduce β˜•οΈ

N/A

Contributing πŸ™ŒπŸ½

Yes, I am willing to help answer this question in a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsk how to do something or how something works

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions