logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.31k stars 406 forks source link

refactor(core): extract isNewMfaVerification property #6338

Closed simeng-li closed 1 month ago

simeng-li commented 1 month ago

Summary

Define a isNewMfaVerifrication property in the MfaVerification records. @wangsijie

Testing

Checklist

github-actions[bot] commented 1 month ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +286 Bytes

Diff by File |Name|Diff| |---|---| |packages/core/src/routes/experience/classes/libraries/mfa-validator.ts|:chart_with_upwards_trend: +517 Bytes| |packages/core/src/routes/experience/classes/verifications/backup-code-verification.ts|:chart_with_upwards_trend: +64 Bytes| |packages/core/src/routes/experience/classes/verifications/totp-verification.ts|:chart_with_upwards_trend: +80 Bytes| |packages/core/src/routes/experience/classes/verifications/verification-record.ts|:chart_with_upwards_trend: +539 Bytes| |packages/core/src/routes/experience/classes/verifications/web-authn-verification.ts|:chart_with_upwards_trend: +120 Bytes|