rp
05/05/2021, 1:30 PMdeltasoneca
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,
};
rp
05/05/2021, 1:56 PMhandlePostSignUp
call. Else the sign in one.
For handlePostSignIn
, you need to put it in the signInFeature
config. No the signUpFeature
config.deltasoneca
05/05/2021, 1:57 PMankitjey
05/06/2021, 10:36 AMSession.verifySession()
middleware. How can I troubleshoot this?ankitjey
05/06/2021, 10:40 AMapp.use('/api/user', Session.verifySession(), userRouter);
rp
05/06/2021, 10:55 AMankitjey
05/06/2021, 10:59 AMunauthorized
,
I am intercepting the request with axios on frontend.
I am checking if the tokens are being sent right nowrp
05/06/2021, 11:07 AMankitjey
05/06/2021, 11:14 AMrp
05/06/2021, 11:33 AMrp
05/06/2021, 11:58 AMankitjey
05/06/2021, 12:01 PMrp
05/06/2021, 12:03 PMrp
05/06/2021, 12:12 PMmichaelzhuk
05/10/2021, 3:43 PMsupertokens-node
and supertokens-auth-react
and auth stopped working. When I go to /auth
route, it starts sending lots of /refresh
requests.michaelzhuk
05/10/2021, 3:43 PMmichaelzhuk
05/10/2021, 3:48 PMcookieSameSite
option. Not sure what else I could miss..rp
05/10/2021, 4:46 PMrp
05/10/2021, 4:52 PMnpm update
and try again.rp
05/10/2021, 6:32 PMmichaelzhuk
05/10/2021, 8:45 PMexport let frontendConfig = () => {
return {
useReactRouterDom: false,
appInfo,
recipeList: [
ThirdPartyEmailPasswordReact.init({
signInAndUpFeature: {
providers: [],
},
async getRedirectionURL(context) {
if (context.action === "SUCCESS") {
return "/brand"
}
},
}),
SessionReact.init(),
],
}
}
michaelzhuk
05/10/2021, 8:46 PMmichaelzhuk
05/10/2021, 8:54 PMyarn upgrade
didn't helprp
05/11/2021, 4:07 AMrp
05/11/2021, 7:44 AMrp
05/11/2021, 7:48 AMsIRTFrontend
, not IRTFrontend
(my bad). Can you tell me is sIRTFrontend
is present or not?rp
05/11/2021, 7:52 AMyukimat
05/11/2021, 9:06 AMrp
05/11/2021, 9:08 AM