hey guys! i set up supertokens for auth in my ne...
# support-questions-legacy
y
hey guys! i set up supertokens for auth in my nextjs project, so that it can handle all the pages under
/auth
but today i added the i18n routing and i think
SuperTokens.getRoutingComponent
or
SuperTokens.canHandleRoute
stopped recognizing the auth route if it is under a locale like this
/en/auth
. and the page just stays blank (white screen) can you help me with this?
r
hey! So the frontend SDK accepts a websiteBasePath property (that is by default /auth), and you can only give it a string
so im afraid that the login UI will have to be on /auth/* and you need another way to determine which language to load - perhaps a query param like /auth?lang=en, or some value stored in localstorage
Maybe you can open an issue about this and we can come up with an elegant solution for this.
2 Views