deltasoneca
05/05/2021, 1:54 PMx@example.com
and then I have a sign-up attempt using Github social login for a Github user that has that same email x@example.com
, is it understood as the same user and just logs in?
Anyway, I tried handlePostSignIn
as well and apparently it isn't being called either.
Here is my backend config:
let backendConfig = () => {
return {
supertokens: {
connectionURI: process.env.SUPER_TOKENS_CONNECTION_URI,
apiKey: process.env.SUPER_TOKENS_API_KEY,
},
appInfo,
recipeList: [
ThirdPartyEmailPasswordNode.init({
providers: [
GithubNode({
clientSecret: process.env.GITHUB_CLIENT_SECRET,
clientId: process.env.GITHUB_CLIENT_ID,
}),
],
signUpFeature: {
formFields: [
{
id: 'userSlug',
},
],
handlePostSignIn: async (user, context) => {
console.log('>>> SIGN IN', user, context);
},
handlePostSignUp: async (user, context) => {
console.log('>>> SIGN UP', user, context);
},
},
}),
SessionNode.init(),
],
isInServerlessEnv: true,
};