nextjs-auth0 icon indicating copy to clipboard operation
nextjs-auth0 copied to clipboard

Making Auth0Setting dynamic based on subdomains, etc.

Open xhiroga opened this issue 3 years ago • 0 comments

Checklist

  • [X] I have looked into the README and have not found a suitable solution or answer.
  • [X] I have looked into the examples and have not found a suitable solution or answer.
  • [X] I have looked into the API documentation and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

I am implementing a multi-tenant application with different tenant settings for each subdomain. With initAuth, it is not possible to set the Auth0Setting based on the value at request time.

Describe the ideal solution

I would like to perform Auth0Setting based on a value determined at the time of request, such as a subdomain of a URL.

Alternatives and current workarounds

Can be avoided by building NextJS for the number of tenants, but cannot build scalable multi-tenant applications

Additional context

No response

xhiroga avatar Aug 10 '22 10:08 xhiroga