Morgante Pell
07/18/2022, 6:39 PMrp_st
07/18/2022, 6:40 PMMorgante Pell
07/18/2022, 6:42 PMrp_st
07/18/2022, 6:43 PMMorgante Pell
07/18/2022, 6:43 PMMorgante Pell
07/18/2022, 6:43 PMrp_st
07/18/2022, 6:44 PMMorgante Pell
07/18/2022, 6:44 PMrp_st
07/18/2022, 6:44 PMrp_st
07/18/2022, 6:45 PMMorgante Pell
07/18/2022, 6:45 PMMorgante Pell
07/18/2022, 6:45 PMrp_st
07/18/2022, 6:45 PMrp_st
07/18/2022, 6:45 PMrp_st
07/18/2022, 6:45 PMrp_st
07/18/2022, 6:45 PMrp_st
07/18/2022, 6:47 PMMorgante Pell
07/18/2022, 6:48 PMrp_st
07/18/2022, 6:49 PMMorgante Pell
07/18/2022, 6:49 PMrp_st
07/18/2022, 6:50 PMMorgante Pell
07/18/2022, 6:55 PMrp_st
07/18/2022, 6:55 PMrp_st
07/18/2022, 6:55 PMrp_st
07/18/2022, 6:55 PMrp_st
07/18/2022, 6:56 PMrp_st
07/18/2022, 6:56 PMrp_st
07/18/2022, 6:56 PMMorgante Pell
07/18/2022, 6:58 PMrp_st
07/18/2022, 6:59 PMMorgante Pell
07/18/2022, 7:01 PMMorgante Pell
07/18/2022, 7:01 PMapp.setErrorHandler(errorHandler());
rp_st
07/18/2022, 7:01 PMrp_st
07/18/2022, 7:01 PMapp.use((err, req, res, next) => {
console.log(err)
next(err);
})
rp_st
07/18/2022, 7:02 PMMorgante Pell
07/18/2022, 7:02 PMrp_st
07/18/2022, 7:02 PMrp_st
07/18/2022, 7:03 PMrp_st
07/18/2022, 7:04 PMapis: (originalImplementation) => {
return {
...originalImplementation,
signInUpPOST: async function (input) {
if (originalImplementation.signInUpPOST === undefined) {
throw Error("Should never come here");
}
try {
let response = await originalImplementation.signInUpPOST(
input
);
if (response.status === "OK") {
const user = new UserAccount(response.user.id);
const token = response.authCodeResponse.access_token;
await user.saveAccessToken(Providers.GitHub, token);
}
return response;
} catch (err) {
console.log(err)
throw err;
}
},
};
},
},
}),
Morgante Pell
07/18/2022, 7:06 PMrp_st
07/18/2022, 7:06 PMMorgante Pell
07/18/2022, 7:11 PMrp_st
07/18/2022, 7:13 PMoriginalImplementation.signInUpPOST
is called? Or the override.functions.signInUp function?Morgante Pell
07/18/2022, 7:13 PMrp_st
07/18/2022, 7:13 PMsignInUp
rp_st
07/18/2022, 7:14 PMsignInAndUp
rp_st
07/18/2022, 7:14 PMMorgante Pell
07/18/2022, 7:14 PMMorgante Pell
07/18/2022, 7:14 PMrp_st
07/18/2022, 7:14 PMrp_st
07/18/2022, 7:15 PMMorgante Pell
07/18/2022, 7:15 PMrp_st
07/18/2022, 7:16 PMMorgante Pell
07/18/2022, 7:16 PMMorgante Pell
07/18/2022, 7:17 PMMorgante Pell
07/18/2022, 7:17 PMrp_st
07/18/2022, 7:17 PMrp_st
07/18/2022, 7:17 PMMorgante Pell
07/18/2022, 7:17 PMrp_st
07/18/2022, 7:18 PMMorgante Pell
07/18/2022, 7:18 PMrp_st
07/18/2022, 7:18 PMMorgante Pell
07/18/2022, 7:18 PMMorgante Pell
07/18/2022, 7:18 PMrp_st
07/18/2022, 7:22 PMMorgante Pell
07/18/2022, 7:23 PMrp_st
07/18/2022, 7:23 PMrp_st
07/18/2022, 7:24 PMrp_st
07/18/2022, 7:24 PMMorgante Pell
07/18/2022, 7:25 PM