fdundjer
06/30/2023, 9:51 AMrp_st
06/30/2023, 9:52 AMfdundjer
06/30/2023, 9:52 AMconst session = await Session.getSession(
input.options.req,
input.options.res,
{
sessionRequired: false,
overrideGlobalClaimValidators: () => [], // We remove claim checking here, since this needs to be callable without the second factor completed
},
);
This is 2fa example from supertokens websitefdundjer
06/30/2023, 9:55 AMfdundjer
06/30/2023, 10:07 AMfdundjer
06/30/2023, 10:08 AMcom.supertokens {t: "2023-06-30T10:07:00.449Z", message: "getInfoFromAccessToken: Returning TRY_REFRESH_TOKEN because access token validation failed - no applicable key found in the JSON Web Key Set", file: "/Users/**/backend/node_modules/supertokens-node/lib/build/recipe/session/accessToken.js:215:22" sdkVer: "14.1.1"} +0ms