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
rp_st
07/29/2022, 8:20 AM
hey! So the frontend SDK accepts a websiteBasePath property (that is by default /auth), and you can only give it a string
rp_st
07/29/2022, 8:20 AM
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
rp_st
07/29/2022, 8:21 AM
Maybe you can open an issue about this and we can come up with an elegant solution for this.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).