binouse
08/11/2022, 9:47 AMThirdPartyPasswordless.createPasswordlessCode({ email })
I'm getting error: TypeError: Cannot read properties of undefined (reading 'createCode')
any ideas of what I am doing wrong ?rp_st
08/11/2022, 9:47 AMnkshah2
08/11/2022, 9:49 AMSuperTokens.init
on the frontend?nkshah2
08/11/2022, 9:52 AMbinouse
08/11/2022, 9:54 AMjavascript
if (typeof window !== "undefined") {
SuperTokensReact.init(frontendConfig());
}
binouse
08/11/2022, 9:56 AMjavascript
export const frontendConfig = () => {
return {
appInfo,
recipeList: [
ThirdPartyPasswordless.init({
useShadowDom: false,
contactMethod: "EMAIL",
getRedirectionURL: async (context) => {
if (context.action === "SIGN_IN_AND_UP") {
return "/authentication";
}
},
signInUpFeature: {
disableDefaultUI: true,
providers: [Google.init(), Facebook.init(), Apple.init()]
},
palette: {
primary: "#000"
},
}),
SessionReact.init()
]
};
};
binouse
08/11/2022, 9:56 AMTypeError: Cannot read properties of undefined (reading 'createCode')
at Object.eval (utils.js?eab2:392:1)
at step (utils.js?eab2:190:1)
at Object.eval [as next] (utils.js?eab2:127:1)
at eval (utils.js?eab2:98:1)
at new Promise (<anonymous>)
at __awaiter (utils.js?eab2:80:1)
at Object.createCode (utils.js?eab2:390:1)
at Function.eval (index.js?99da:512:1)
at step (index.js?99da:176:1)
at Object.eval [as next] (index.js?99da:113:1)
at eval (index.js?99da:84:1)
at new Promise (<anonymous>)
at __awaiter (index.js?99da:66:1)
at Wrapper.createPasswordlessCode (index.js?99da:501:1)
at _callee2$ (supertokens.ts?e9c4:50:5)
at tryCatch (runtime.js?ecd4:45:16)
at Generator.invoke [as _invoke] (runtime.js?ecd4:274:1)
at prototype.<computed> [as next] (runtime.js?ecd4:97:1)
at asyncGeneratorStep (asyncToGenerator.js?7eb1:3:1)
at _next (asyncToGenerator.js?7eb1:25:1)
at eval (asyncToGenerator.js?7eb1:32:1)
at new Promise (<anonymous>)
at Object.eval (asyncToGenerator.js?7eb1:21:1)
at Object.passwordLessStart (supertokens.ts?e9c4:44:20)
at _callee$ (AuthenticationLogin.tsx?edf7:88:33)
at tryCatch (runtime.js?ecd4:45:16)
at Generator.invoke [as _invoke] (runtime.js?ecd4:274:1)
at prototype.<computed> [as next] (runtime.js?ecd4:97:1)
at asyncGeneratorStep (asyncToGenerator.js?7eb1:3:1)
at _next (asyncToGenerator.js?7eb1:25:1)
at eval (asyncToGenerator.js?7eb1:32:1)
at new Promise (<anonymous>)
at eval (asyncToGenerator.js?7eb1:21:1)
at eval (AuthenticationLogin.tsx?edf7:85:31)
at eval (index.esm.js?b394:1239:1)
nkshah2
08/11/2022, 10:06 AMnode_modules
and package-lock.json
and reinstalling supertokens-auth-react
?binouse
08/11/2022, 10:14 AM"supertokens-auth-react": "^0.24.1"
binouse
08/11/2022, 10:14 AMnkshah2
08/11/2022, 10:15 AMsupertokens-web-js
got installed in node_modules
as well?binouse
08/11/2022, 10:16 AMbinouse
08/11/2022, 10:16 AMnkshah2
08/11/2022, 10:23 AMnkshah2
08/11/2022, 10:24 AMbinouse
08/11/2022, 10:33 AMnkshah2
08/11/2022, 10:33 AMnkshah2
08/11/2022, 10:34 AMbinouse
08/11/2022, 10:34 AMnkshah2
08/11/2022, 11:09 AMsupertokens-auth-react
SDK?binouse
08/11/2022, 11:16 AMnkshah2
08/11/2022, 11:19 AMnkshah2
08/11/2022, 11:19 AMbinouse
08/11/2022, 11:57 AMrp_st
08/11/2022, 6:18 PMbinouse
08/18/2022, 2:54 PMrp_st
08/18/2022, 3:03 PMrp_st
08/18/2022, 3:04 PMbinouse
08/18/2022, 5:12 PMbinouse
08/19/2022, 7:47 AMrp_st
08/19/2022, 8:28 AM