rp
03/30/2021, 2:49 PMfetchApi
call.othiagocruz
03/30/2021, 2:49 PMothiagocruz
03/30/2021, 2:49 PMothiagocruz
03/30/2021, 2:50 PM/api/auth/signup
?rp
03/30/2021, 2:50 PMothiagocruz
03/30/2021, 2:51 PMothiagocruz
03/30/2021, 2:52 PMrp
03/30/2021, 2:52 PMothiagocruz
03/30/2021, 2:53 PMothiagocruz
03/30/2021, 2:53 PMrp
03/30/2021, 2:53 PMrp
03/30/2021, 2:53 PMothiagocruz
03/30/2021, 2:53 PMothiagocruz
03/30/2021, 2:54 PMothiagocruz
03/30/2021, 2:55 PMrp
03/30/2021, 2:55 PMothiagocruz
03/30/2021, 2:55 PMrp
03/30/2021, 2:56 PMrp
03/30/2021, 2:56 PMothiagocruz
03/30/2021, 2:56 PMothiagocruz
03/30/2021, 3:02 PMothiagocruz
03/30/2021, 3:02 PMawait fetchApi(`${websiteDomain}/api/users/create`, { id, email })
rp
03/30/2021, 3:03 PMothiagocruz
03/30/2021, 3:06 PMothiagocruz
03/30/2021, 3:06 PMSuperTokensNode.init({
supertokens: {
connectionURI: process.env.SUPERTOKENS_DOMAIN,
apiKey: process.env.SUPERTOKENS_API_KEY,
},
appInfo: {
appName: "storefront",
apiDomain: websiteDomain,
websiteDomain,
apiBasePath,
},
recipeList: [
ThirdPartyEmailPasswordNode.init({
signUpFeature: {
handlePostSignUp: async (user, context) => {
const { id, email } = user
await fetchApi(`${websiteDomain}/api/users/create`, { id, email })
},
},
providers: [],
}),
SessionNode.init(),
],
})
othiagocruz
03/30/2021, 3:06 PMrp
03/30/2021, 3:06 PMrp
03/30/2021, 3:06 PMothiagocruz
03/30/2021, 3:07 PMothiagocruz
03/30/2021, 3:07 PM