Hey! What’s the supertokens.init that you have given?
e
eugenechantk
10/21/2022, 3:18 AM
Copy code
SuperTokens.init({
framework: "express",
supertokens: {
// https://try.supertokens.com is for demo purposes. Replace this with the address of your core instance (sign up on supertokens.com), or self host a core.
connectionURI: process.env.SUPERTOKEN_CONNECT_URI,
apiKey: process.env.SUPETOKEN_CONNECT_KEY,
// apiKey: "IF YOU HAVE AN API KEY FOR THE CORE, ADD IT HERE",
},
appInfo: {
// learn more about this on https://supertokens.com/docs/session/appinfo
appName: "One click DAO builder",
apiDomain: "http://localhost:8000",
websiteDomain: "http://localhost:3000",
apiBasePath: "/auth",
websiteBasePath: "/auth",
},
recipeList: [
Session.init()
]
});
r
rp_st
10/21/2022, 3:19 AM
Is the value of process.env.CONNECTION_URI properly set? Can you console log it before calling the init function?
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).