funk101
11/27/2022, 9:00 AMNo instance of EmailPassword found.
rp_st
11/27/2022, 9:06 AMfunk101
11/27/2022, 9:08 AMfunk101
11/27/2022, 9:08 AMrp_st
11/27/2022, 9:09 AMrp_st
11/27/2022, 9:09 AMfunk101
11/27/2022, 9:09 AMexport const frontendConfig = () => {
return {
enableDebugLogs: false,
appInfo,
recipeList: [
EmailPasswordReact.init({
palette: {
textPrimary: "#333366",
textLabel: "#333366",
textTitle: "#333366",
textInput: "#333366",
},
style: {
button: {
backgroundColor: "#333366",
border: "none",
},
headerTitle: {
fontSize: "36px",
fontWeight: "normal",
},
},
}),
SessionReact.init(),
],
windowHandler: (oI) => {
return {
...oI,
location: {
...oI.location,
setHref: (href) => {
Router.push(href);
},
},
};
},
};
};
funk101
11/27/2022, 9:09 AMrp_st
11/27/2022, 9:10 AMrp_st
11/27/2022, 9:10 AMfunk101
11/27/2022, 9:11 AMrp_st
11/27/2022, 9:12 AMrp_st
11/27/2022, 9:12 AMfunk101
11/27/2022, 9:12 AMrp_st
11/27/2022, 9:21 AMrp_st
11/27/2022, 9:22 AMrp_st
11/27/2022, 9:23 AMfunk101
11/27/2022, 6:16 PMrp_st
11/28/2022, 4:17 AMfunk101
11/28/2022, 4:19 AMrp_st
11/28/2022, 4:20 AMfunk101
11/28/2022, 4:21 AMError: Cancel rendering route
rp_st
11/28/2022, 4:21 AMfunk101
11/28/2022, 4:21 AMrp_st
11/28/2022, 4:22 AMfunk101
11/28/2022, 4:22 AMrp_st
11/28/2022, 4:23 AMfunk101
11/28/2022, 4:24 AMfunk101
11/28/2022, 4:24 AMrp_st
11/28/2022, 4:24 AMfunk101
11/28/2022, 4:24 AMrp_st
11/28/2022, 4:24 AMfunk101
11/28/2022, 4:25 AMrp_st
11/28/2022, 4:25 AMrp_st
11/28/2022, 4:25 AMrp_st
11/28/2022, 4:25 AMfunk101
11/28/2022, 4:27 AMrp_st
11/28/2022, 4:34 AMfunk101
11/28/2022, 4:34 AMfunk101
11/28/2022, 4:35 AMrp_st
11/28/2022, 4:45 AMfunk101
11/28/2022, 6:17 AMrp_st
11/28/2022, 6:20 AMrp_st
11/28/2022, 6:20 AMfunk101
11/28/2022, 6:38 AMrp_st
11/28/2022, 6:49 AMfunk101
11/28/2022, 6:50 AMfunk101
11/28/2022, 7:44 AMwindowHandler: (oI) => {
return {
...oI,
location: {
...oI.location,
setHref: (href) => {
Router.push(href);
},
},
};
},
funk101
11/28/2022, 7:44 AMrp_st
11/28/2022, 7:44 AMfunk101
11/28/2022, 7:44 AMfunk101
11/28/2022, 7:48 AMrp_st
11/28/2022, 8:09 AMfunk101
11/28/2022, 8:50 AMsignInPOST: async function (input) {
if (originalImplementation.signInPOST === undefined) {
throw Error("Shouldn't come here");
}
try {
const response = await originalImplementation.signInPOST(
input
);
if (response.status === "OK") {
console.log("User2: ", response.user);
/* if (response.user) {
const currentAccessTokenPayload =
response.session.getAccessTokenPayload();
console.log("Payload: ", currentAccessTokenPayload);
} */
}
} catch (err) {
console.log("signInPOST: ", err);
}
funk101
11/28/2022, 8:50 AMerror - TypeError: Cannot read properties of undefined (reading 'status')
at Object.<anonymous> (G:\Documents\Projects\LaCasting-NextJS\lacastinginc\node_modules\supertokens-node\lib\build\recipe\emailpassword\api\signin.js:67:20)
at Generator.next (<anonymous>)
at fulfilled (G:\Documents\Projects\LaCasting-NextJS\lacastinginc\node_modules\supertokens-node\lib\build\recipe\emailpassword\api\signin.js:29:36)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
page: '/api/auth/[[...path]]'
}
funk101
11/28/2022, 8:51 AMrp_st
11/28/2022, 8:55 AMrp_st
11/28/2022, 8:55 AMfunk101
11/28/2022, 8:57 AMfunk101
11/28/2022, 8:58 AMrp_st
11/28/2022, 8:58 AMfunk101
11/28/2022, 8:58 AMif (response.status === "OK") {
console.log("User2: ", response.user);
funk101
11/28/2022, 8:59 AMrp_st
11/28/2022, 8:59 AMfunk101
11/28/2022, 3:35 PMrp_st
11/28/2022, 3:36 PMfunk101
11/28/2022, 3:36 PMrp_st
11/28/2022, 3:37 PMfunk101
11/28/2022, 3:37 PMrp_st
11/28/2022, 3:38 PM