EyesForDays
03/03/2023, 11:23 PMrp_st
03/04/2023, 5:03 AMEyesForDays
03/04/2023, 9:27 PMrp_st
03/05/2023, 4:26 AMnkshah2
03/05/2023, 4:27 AMnkshah2
03/05/2023, 4:27 AMrp_st
03/05/2023, 4:28 AMrp_st
03/05/2023, 4:28 AMEyesForDays
03/05/2023, 4:32 AMjson
{
framework: "awsLambda",
supertokens: {
connectionURI: "***",
apiKey: "***",
},
appInfo: {
appName: "checkayou.com",
apiDomain: "https://checkayou.com",
websiteDomain: "https://checkayou.com",
apiBasePath: "/auth",
apiGatewayPath: "/prod",
},
recipeList: [
Passwordless.init({
flowType: "MAGIC_LINK",
contactMethod: "EMAIL",
}),
Session.init(),
Dashboard.init({
apiKey: "***",
}),
],
isInServerlessEnv: true,
}
nkshah2
03/05/2023, 4:33 AMnkshah2
03/05/2023, 4:34 AMEyesForDays
03/05/2023, 4:34 AMEyesForDays
03/05/2023, 4:35 AMEyesForDays
03/05/2023, 4:36 AMrp_st
03/05/2023, 4:45 AMEyesForDays
03/05/2023, 5:10 AMEyesForDays
03/05/2023, 5:21 AMnkshah2
03/06/2023, 5:53 AMEyesForDays
03/06/2023, 5:54 AMnkshah2
03/06/2023, 5:55 AMEyesForDays
03/06/2023, 6:00 AMEyesForDays
03/06/2023, 6:01 AMnkshah2
03/06/2023, 6:01 AMEyesForDays
03/06/2023, 6:01 AMnkshah2
03/06/2023, 6:01 AMEyesForDays
03/06/2023, 6:02 AMnkshah2
03/06/2023, 6:02 AMnkshah2
03/06/2023, 6:17 AMoverride: {
apis: (original) => {
return {
...original,
dashboardGET: async (input) => {
if (original.dashboardGET === undefined) {
return "";
}
let htmlString = await original.dashboardGET(input);
htmlString = htmlString.replace('window.dashboardAppPath = "/prod/auth/dashboard"', '');
return htmlString;
},
};
}
},
nkshah2
03/06/2023, 6:20 AMhtmlString = htmlString.replace('window.dashboardAppPath = "/prod/auth/dashboard"', 'window.dashboardAppPath = "/api/auth/dashboard"');
nkshah2
03/06/2023, 6:26 AMfunctions: (original) => {
return {
...original,
shouldAllowAccess: async (input) => {
console.log(input.req.getHeaderValue("authorization"))
return original.shouldAllowAccess(input);
},
};
},