https://supertokens.com/ logo
#general
Title
# general
l

legolas8911

12/20/2021, 3:20 PM
Copy code
return {
        framework: 'express' as const,
        supertokens: {
            connectionURI: process.env.SUPERTOKENS_CONNECTION_URI as string,
            apiKey: process.env.SUPERTOKENS_API_KEY as string,
        },
        appInfo: {
            appName: 'xxx',
            apiDomain: process.env.API_DOMAIN as string,
            websiteDomain: 'https://www.xxx.io',
        },
        recipeList: [
            ThirdPartyEmailPassword.init({
                providers: [
                    Github({
                        clientId: 'xxx',
                        clientSecret: 'xxx',
                        scope: ['read:user', 'user:email', 'repo'],
                    }),
                ],
            }),
            Session.init({
                cookieDomain: '.xxx.io',
                cookieSameSite: 'none',
                jwt: {
                    enable: true,
                },
            }),
            JWT.init(),
        ],
        isInServerlessEnv: true,
    };