-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
190 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function getRecipeInterface(_querier) { | ||
return {}; | ||
return { | ||
// markFactorAsCompleteInSession: async ({ session, factor, userContext }) => { | ||
// const currentValue = await session.getClaimValue(MultiFactorAuthClaim); | ||
// const completed = { | ||
// ...currentValue?.c, | ||
// [factor]: Math.floor(Date.now() / 1000), | ||
// }; | ||
// const setupUserFactors = await this.recipeInterfaceImpl.getFactorsSetupForUser({ | ||
// userId: session.getUserId(), | ||
// tenantId: session.getTenantId(), | ||
// userContext, | ||
// }); | ||
// const requirements = await this.config.getMFARequirementsForAuth( | ||
// session, | ||
// setupUserFactors, | ||
// completed, | ||
// userContext | ||
// ); | ||
// const next = MultiFactorAuthClaim.buildNextArray(completed, requirements); | ||
// await session.setClaimValue(MultiFactorAuthClaim, { | ||
// c: completed, | ||
// n: next, | ||
// }); | ||
// }, | ||
}; | ||
} | ||
exports.default = getRecipeInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.