rp_st
12/03/2021, 2:25 PMgo
errr := supertokens.Init(supertokens.TypeInput{
Supertokens: &supertokens.ConnectionInfo{
// These are the connection details of the app you created on supertokens.io
ConnectionURI: "http://localhost:3567/",
APIKey: "",
},
AppInfo: supertokens.AppInfo{
AppName: "GOInfluencer",
APIDomain: "http://localhost:8080/",
WebsiteDomain: "http://localhost:8081/",
},
RecipeList: []supertokens.Recipe{
emailpassword.Init(&epmodels.TypeInput{
ResetPasswordUsingTokenFeature: &epmodels.TypeInputResetPasswordUsingTokenFeature{CreateAndSendCustomEmail: func(user epmodels.User, passwordResetURLWithToken string) {
fmt.Println(passwordResetURLWithToken)
}},
}),
session.Init(nil),
},
})
if errr != nil {
panic(errr.Error())
}