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.15k stars 395 forks source link

feat(core): implement TOTP verification routes #6201

Closed simeng-li closed 1 month ago

simeng-li commented 1 month ago

Summary

Implement the TOTP verification routes:

Testing

integration tests added

Checklist

github-actions[bot] commented 1 month ago

COMPARE TO master

Total Size Diff :warning: :chart_with_upwards_trend: +17.23 KB

Diff by File |Name|Diff| |---|---| |packages/core/src/routes/experience/classes/experience-interaction.ts|:chart_with_upwards_trend: +254 Bytes| |packages/core/src/routes/experience/classes/verifications/index.ts|:chart_with_upwards_trend: +320 Bytes| |packages/core/src/routes/experience/classes/verifications/totp-verification.ts|:chart_with_upwards_trend: +5.43 KB| |packages/core/src/routes/experience/index.ts|:chart_with_upwards_trend: +123 Bytes| |packages/core/src/routes/experience/verification-routes/totp-verification.ts|:chart_with_upwards_trend: +3.55 KB| |packages/core/src/routes/interaction/additional.ts|0 Bytes| |packages/integration-tests/src/client/experience/index.ts|:chart_with_upwards_trend: +551 Bytes| |packages/integration-tests/src/helpers/experience/totp-verification.ts|:chart_with_upwards_trend: +684 Bytes| |packages/integration-tests/src/tests/api/experience-api/verifications/totp-verification.test.ts|:chart_with_upwards_trend: +5.84 KB| |packages/integration-tests/src/tests/api/interaction/mfa/totp.test.ts|0 Bytes| |packages/phrases/src/locales/en/errors/session.ts|:chart_with_upwards_trend: +64 Bytes| |packages/schemas/src/types/interactions.ts|:chart_with_upwards_trend: +466 Bytes|