``` supertokens.init({ supertokens: { apiKey...
# support-questions-legacy
t
Copy code
supertokens.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,
    }),
  ],
});
2 Views