user
12/20/2020, 5:00 AMSuperTokens.init({
supertokens: {
connectionURI: process.env.SUPERTOKENS_URI,
apiKey:process.env.SUPERTOKENS_API_KEY,
},
appInfo: {
appName: "demo",
apiDomain,
apiBasePath,
websiteDomain
},
recipeList: [
Session.init({
faunadbSecret: process.env.FAUNADB_SECRET_KEY,
userCollectionName: "User",
accessFaunadbTokenFromFrontend: true
})
]
});
FE ---
`const websitePort = process.env.APP_PORT || 3000;
const websiteUrl = process.env.NEXT_PUBLIC_APP_URL || `http://localhost:${websitePort}`;
if (typeof window !== 'undefined') {
SuperTokens.init({
appInfo: {
appName: "demo",
apiDomain: websiteUrl,
websiteDomain: websiteUrl,
apiBasePath: "api/auth"
},
recipeList: [
Session.init({
sessionScope: 'localhost'
}),
]
});
}`rp
12/20/2020, 5:30 AMrp
12/20/2020, 5:35 AMrp
12/20/2020, 5:35 AMrp
12/20/2020, 5:45 AMuser
12/20/2020, 5:50 AMrp
12/20/2020, 6:24 AMrp
12/20/2020, 6:24 AMrp
12/20/2020, 6:25 AMrp
12/20/2020, 6:26 AMrp
12/20/2020, 6:26 AMrp
12/21/2020, 7:46 AMfetch
interceptors have been added successfully, please open your website on google chrome, go to console, and type fetch
. If you see the following output (see image in this message), that means the interceptor has been added successfully. If you see something else, then the interceptors were not added, and that's why the various tokens are not being set on the frontend. Please let me know what you see. ThanksRahul1234567890
12/21/2020, 8:42 AMrp
12/21/2020, 8:45 AMRahul1234567890
12/21/2020, 8:46 AMRahul1234567890
12/21/2020, 8:46 AMrp
12/21/2020, 2:20 PMuser
12/22/2020, 3:57 PMrp
12/22/2020, 3:58 PMLarpon
12/23/2020, 4:00 PMrp
12/23/2020, 4:00 PMrp
12/23/2020, 4:01 PMrp
12/23/2020, 4:01 PMrp
12/23/2020, 4:02 PMrp
12/23/2020, 4:02 PMrp
12/23/2020, 4:03 PMLarpon
12/23/2020, 5:04 PMrp
12/23/2020, 5:05 PMLarpon
12/23/2020, 5:08 PMrp
12/23/2020, 5:08 PM