SDavies
11/08/2022, 7:04 PMsupertokens.Init()
just hangs. I'm running in debug mode, when it gets to that call it logs out all the normal stuff, but then just...sits there. Nothing after the call to init is running. Wondering if anyone else has experienced this? I got a node server running on Fly with the same configuration, so I don't think that's set up incorrectly.rp_st
11/08/2022, 7:12 PMrp_st
11/08/2022, 7:12 PMsattvikc
11/09/2022, 5:12 AMSDavies
11/09/2022, 5:26 PMwebsiteBasePath := "/auth"
apiBasePath := "/auth"
err := supertokens.Init(supertokens.TypeInput{
Supertokens: &supertokens.ConnectionInfo{
ConnectionURI: os.Getenv("CORE_URI"),
},
AppInfo: supertokens.AppInfo{
AppName: "supertokens-backend",
APIDomain: os.Getenv("API_DOMAIN"),
WebsiteDomain: os.Getenv("WEBSITE_DOMAIN"),
WebsiteBasePath: &websiteBasePath,
APIBasePath: &apiBasePath,
},
RecipeList: []supertokens.Recipe{
thirdpartypasswordless.Init(tplmodels.TypeInput{
FlowType: "MAGIC_LINK",
ContactMethodEmailOrPhone: plessmodels.ContactMethodEmailOrPhoneConfig{
Enabled: true,
},
Providers: []tpmodels.TypeProvider{
thirdparty.Google(tpmodels.GoogleConfig{
ClientID: os.Getenv("GOOGLE_CLIENT_ID"),
ClientSecret: os.Getenv("GOOGLE_CLIENT_SECRET"),
}),
// thirdparty.Apple(tpmodels.AppleConfig{
// ClientID: os.Getenv("APPLE_CLIENT_ID"),
// ClientSecret: tpmodels.AppleClientSecret{
// KeyId: os.Getenv("APPLE_KEY_ID"),
// PrivateKey: `...`,
// TeamId: os.Getenv("APPLE_TEAM_ID"),
// },
// }),
thirdparty.Facebook(tpmodels.FacebookConfig{
ClientID: os.Getenv("FB_APP_ID"),
ClientSecret: os.Getenv("FB_APP_SECRET"),
}),
},
}),
session.Init(nil), // initializes session features
},
})
SDavies
11/09/2022, 5:28 PM2022-11-08T19:09:39.796 app[...] sjc [info] com.supertokens {t: "2022-11-08T19:09:39Z", message: "Started SuperTokens with debug logging (supertokens.Init called)", file: "github.com/supertokens/supertokens-golang@v0.9.7/supertokens/main.go:23" sdkVer: "0.9.7"}
2022-11-08T19:09:39.796 app[...] sjc [info] com.supertokens {t: "2022-11-08T19:09:39Z", message: "AppInfo: {"AppName":"supertokens-backend","WebsiteDomain":"...","APIDomain":"...","WebsiteBasePath":"/auth","APIBasePath":"/auth","APIGatewayPath":null}", file: "github.com/supertokens/supertokens-golang@v0.9.7/supertokens/main.go:23" sdkVer: "0.9.7"}
2022-11-08T19:09:39.796 app[...] sjc [info] com.supertokens {t: "2022-11-08T19:09:39Z", message: "session init: AntiCsrf: VIA_CUSTOM_HEADER", file: "github.com/supertokens/supertokens-golang@v0.9.7/recipe/session/recipe.go:112" sdkVer: "0.9.7"}
2022-11-08T19:09:39.796 app[...] sjc [info] com.supertokens {t: "2022-11-08T19:09:39Z", message: "session init: CookieDomain: nil", file: "github.com/supertokens/supertokens-golang@v0.9.7/recipe/session/recipe.go:112" sdkVer: "0.9.7"}
SDavies
11/09/2022, 5:28 PM2022-11-08T19:09:39.796 app[...] sjc [info] com.supertokens {t: "2022-11-08T19:09:39Z", message: "session init: CookieSameSite: none", file: "github.com/supertokens/supertokens-golang@v0.9.7/recipe/session/recipe.go:112" sdkVer: "0.9.7"}
2022-11-08T19:09:39.796 app[...] sjc [info] com.supertokens {t: "2022-11-08T19:09:39Z", message: "session init: CookieSecure: true", file: "github.com/supertokens/supertokens-golang@v0.9.7/recipe/session/recipe.go:112" sdkVer: "0.9.7"}
2022-11-08T19:09:39.796 app[...] sjc [info] com.supertokens {t: "2022-11-08T19:09:39Z", message: "session init: RefreshTokenPath: /auth/session/refresh", file: "github.com/supertokens/supertokens-golang@v0.9.7/recipe/session/recipe.go:112" sdkVer: "0.9.7"}
2022-11-08T19:09:39.797 app[...] sjc [info] com.supertokens {t: "2022-11-08T19:09:39Z", message: "session init: SessionExpiredStatusCode: 401", file: "github.com/supertokens/supertokens-golang@v0.9.7/recipe/session/recipe.go:112" sdkVer: "0.9.7"}
rp_st
11/09/2022, 5:43 PMSDavies
11/09/2022, 5:43 PMrp_st
11/09/2022, 5:46 PMrp_st
11/09/2022, 5:50 PMrp_st
11/09/2022, 5:50 PMSDavies
11/09/2022, 5:51 PMrp_st
11/09/2022, 5:51 PMSDavies
11/09/2022, 5:53 PMSDavies
11/09/2022, 5:54 PMrp_st
11/09/2022, 6:08 PM