Hi, have there been any variable name changes lately? I would like to enable session sharing across subdomains. I am using the supertokens-nextJS sample app
r
rp_st
02/15/2023, 5:31 AM
hey @maurice0528 the variable you are using is for the latest version of our frontend SDK. Please upgrade to the latest version of (frontend and backend) SDKs.
Alternatively, the older name for this variable was
sessionScope
m
maurice0528
02/15/2023, 10:41 AM
thanks for the help. I completely overlooked that when creating with create-supertokens-app, supertokens-web-js was not on the latest version.
maurice0528
02/15/2023, 10:42 AM
I would like to use supertokens with multiple NextJS apps. Is there any documentation or guidelines I can follow for implementation?
All apps run on the same domain but on different subdomains. For the auth app, I would use auth.example.com, for the main page only example.com, and for another page test.example.com, but they are all separate apps.
What is the best way to implement this? Do I implement the supertokens frontend SDK in each Next app and have them all communicate with the supertokens backend (auth.example.com)?
Thanks for the help!
r
rp_st
02/15/2023, 10:45 AM
> What is the best way to implement this? Do I implement the supertokens frontend SDK in each Next app and have them all communicate with the supertokens backend (auth.example.com)?
Yea. This could work well.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).