firokat
04/14/2022, 9:40 AM/auth/callback/githubnkshah2
04/14/2022, 10:08 AMfirokat
04/14/2022, 10:12 AM[0] 2022-04-14T10:10:06.791Z com.supertokens {t: "2022-04-14T10:10:06.789Z", message: "middleware: Started", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:158:26" sdkVer: "9.1.2"}
[0] 
[0] 
[0] 
[0] 2022-04-14T10:10:06.798Z com.supertokens {t: "2022-04-14T10:10:06.794Z", message: "middleware: requestRID is: thirdpartyemailpassword", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:172:26" sdkVer: "9.1.2"}
[0] 2022-04-14T10:10:06.800Z com.supertokens {t: "2022-04-14T10:10:06.799Z", message: "middleware: Checking recipe ID for match: thirdpartyemailpassword", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:181:34" sdkVer: "9.1.2"}
[0] 2022-04-14T10:10:06.802Z com.supertokens {t: "2022-04-14T10:10:06.800Z", message: "middleware: Matched with recipe ID: thirdpartyemailpassword", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:194:30" sdkVer: "9.1.2"}
[0] 
[0] 2022-04-14T10:10:06.814Z com.supertokens {t: "2022-04-14T10:10:06.812Z", message: "middleware: Request being handled by recipe. ID is: /authorisationurl", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:206:30" sdkVer: "9.1.2"}
[0] 
[0] 2022-04-14T10:10:06.836Z com.supertokens {t: "2022-04-14T10:10:06.835Z", message: "Sending response to client with status code: 200", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/utils.js:90:14" sdkVer: "9.1.2"}
[0] 
[0] 2022-04-14T10:10:06.860Z com.supertokens {t: "2022-04-14T10:10:06.859Z", message: "middleware: Ended", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:215:30" sdkVer: "9.1.2"}
[0]firokat
04/14/2022, 10:13 AM[0] GET /auth/authorisationurl?thirdPartyId=github 304 - - 71.685 ms
[0] 2022-04-14T10:10:08.147Z com.supertokens {t: "2022-04-14T10:10:08.146Z", message: "middleware: Started", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:158:26" sdkVer: "9.1.2"}
[0] 2022-04-14T10:10:08.150Z com.supertokens {t: "2022-04-14T10:10:08.149Z", message: "middleware: requestRID is: undefined", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:172:26" sdkVer: "9.1.2"}
[0] 2022-04-14T10:10:08.151Z com.supertokens {t: "2022-04-14T10:10:08.151Z", message: "middleware: Checking recipe ID for match: thirdpartyemailpassword", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:220:34" sdkVer: "9.1.2"}
[0] 
[0] 
[0] 
[0] 2022-04-14T10:10:08.161Z com.supertokens {t: "2022-04-14T10:10:08.161Z", message: "middleware: Checking recipe ID for match: session", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:220:34" sdkVer: "9.1.2"}
[0] 
[0] 
[0] 2022-04-14T10:10:08.164Z com.supertokens {t: "2022-04-14T10:10:08.163Z", message: "middleware: Not handling because no recipe matched", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:243:30" sdkVer: "9.1.2"}
[0] GET /auth/callback/github?code=xxxxxxxxxx 404 159 - 26.428 ms*nkshah2
04/14/2022, 10:15 AMfirokat
04/14/2022, 10:15 AM[0] 2022-04-14T10:09:42.305Z com.supertokens {t: "2022-04-14T10:09:42.305Z", message: "appInfo: {"appName":"ModpackCreator","apiDomain":"http://localhost:3000","websiteDomain":"http://localhost:4000","apiBasePath":"/auth","websiteBasePath":"/auth"}", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:271:18" sdkVer: "9.1.2"}
[0] 2022-04-14T10:09:42.306Z com.supertokens {t: "2022-04-14T10:09:42.306Z", message: "framework: express", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/supertokens.js:273:18" sdkVer: "9.1.2"}
[0] 2022-04-14T10:09:42.331Z com.supertokens {t: "2022-04-14T10:09:42.331Z", message: "session init: antiCsrf: NONE", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/recipe/session/recipe.js:164:18" sdkVer: "9.1.2"}
[0] 2022-04-14T10:09:42.333Z com.supertokens {t: "2022-04-14T10:09:42.332Z", message: "session init: cookieDomain: undefined", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/recipe/session/recipe.js:165:18" sdkVer: "9.1.2"}
[0] 2022-04-14T10:09:42.334Z com.supertokens {t: "2022-04-14T10:09:42.333Z", message: "session init: cookieSameSite: lax", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/recipe/session/recipe.js:166:18" sdkVer: "9.1.2"}
[0] 2022-04-14T10:09:42.336Z com.supertokens {t: "2022-04-14T10:09:42.335Z", message: "session init: cookieSecure: false", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/recipe/session/recipe.js:167:18" sdkVer: "9.1.2"}
[0] 2022-04-14T10:09:42.339Z com.supertokens {t: "2022-04-14T10:09:42.337Z", message: "session init: refreshTokenPath: /auth/session/refresh", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/recipe/session/recipe.js:168:18" sdkVer: "9.1.2"}firokat
04/14/2022, 10:16 AM[0] 2022-04-14T10:09:42.341Z com.supertokens {t: "2022-04-14T10:09:42.341Z", message: "session init: sessionExpiredStatusCode: 401", file: "/home/firokat/ModpackCreator/node_modules/supertokens-node/lib/build/recipe/session/recipe.js:171:18" sdkVer: "9.1.2"}firokat
04/14/2022, 10:16 AMjs
supertokens.init({
    framework: "express",
    supertokens: {
        // 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: "http://localhost:3567",
        // apiKey: "IF YOU HAVE AN API KEY FOR THE CORE, ADD IT HERE",
    },
    appInfo: {
        // learn more about this on https://supertokens.com/docs/thirdpartyemailpassword/appinfo
        appName: "ModpackCreator",
        apiDomain: "http://localhost:3000",
        websiteDomain: "http://localhost:4000",
        apiBasePath: "/auth",
        websiteBasePath: "/auth"
    },
    recipeList: [
        ThirdPartyEmailPassword.init({
          providers:[
            Github({
              clientId: "xxxxxxxxx",
              clientSecret: "xxxxxxxxxxxxxxxxxxx"
            })
          ]
        }),
        Session.init() // initializes session features
    ]
});nkshah2
04/14/2022, 10:17 AMfirokat
04/14/2022, 10:20 AMjs
SuperTokens.init({
    apiDomain: "http://localhost:3000",
    apiBasePath: "/auth"
});nkshah2
04/14/2022, 10:20 AMfirokat
04/14/2022, 10:21 AMnkshah2
04/14/2022, 10:22 AMlocalhost:3000/auth/callback/githublocalhost:4000firokat
04/14/2022, 10:23 AMhttp://localhost:4000/auth/callback/githubnkshah2
04/14/2022, 10:24 AMGET /auth/callback/github?code=xxxxxxxxxx 404 159 - 26.428 ms*firokat
04/14/2022, 10:29 AMjs
async signInWithGithub(){
        return new Promise((ok,err)=>{
            axios.get('/auth/authorisationurl?thirdPartyId=github',{headers:{"rid":"thirdpartyemailpassword"}})
                .then(res=>{
                    let data = res.data
                    if (data.status=="OK"){
                        let url = new URL(data.url)
                        url.searchParams.append("redirect_uri", "http://localhost:4000/auth/callback/github")
                        //url = url.toString()
                        window.open(url, '_blank')
                        
                    }
                })
        })
    }nkshah2
04/14/2022, 10:31 AMhttp://localhost:4000/auth/callback/githubfirokat
04/14/2022, 10:31 AMnkshah2
04/14/2022, 10:31 AMfirokat
04/14/2022, 10:32 AMfirokat
04/14/2022, 10:33 AMnkshah2
04/14/2022, 10:33 AMhttp://localhost:4000/auth/callback/github/signinupnkshah2
04/14/2022, 10:34 AMfirokat
04/14/2022, 10:34 AMnkshah2
04/14/2022, 10:34 AM