thisjust.
03/05/2021, 5:58 AMsupertokens.init({
supertokens: {
apiKey,
connectionURI,
},
appInfo: {
appName,
apiDomain: "http://localhost:8888",
websiteDomain: "http://localhost:8888",
apiBasePath: "/auth",
},
recipeList: [
Session.init({
// the supertoken docs say to do this:
faunadbClient: new faunadb.Client({
secret: FAUNA_SERVER_KEY,
}),
// but there's a convo in the discord history between you and Dimitri
// that has this instead:
// faunadbSecret: FAUNA_SERVER_KEY,
userCollectionName: "User",
accessFaunadbTokenFromFrontend: true,
}),
],
});