logto-io / logto

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

refactor(core): refactor identifyUser method #6154

Open simeng-li opened 6 days ago

simeng-li commented 6 days ago

Summary

Refactor the identifyUser method for all the verification classes.

Instead of relying on the static verified userId cache, should verify the user identity in real time. Implement real-time user identity check logic instead.

Testing

integration tests covered

Checklist

github-actions[bot] commented 6 days ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +3.76 KB

Diff by File |Name|Diff| |---|---| |packages/core/src/routes/experience/classes/experience-interaction.ts|:chart_with_upwards_trend: +1.61 KB| |packages/core/src/routes/experience/classes/utils.ts|:chart_with_upwards_trend: +1.94 KB| |packages/core/src/routes/experience/classes/verifications/code-verification.ts|:chart_with_upwards_trend: +122 Bytes| |packages/core/src/routes/experience/classes/verifications/index.ts|:chart_with_upwards_trend: +7 Bytes| |packages/core/src/routes/experience/classes/verifications/password-verification.ts|:chart_with_upwards_trend: +407 Bytes| |packages/core/src/routes/experience/classes/verifications/social-verification.ts|:chart_with_upwards_trend: +447 Bytes| |packages/core/src/routes/experience/classes/verifications/verification-record.ts|:chart_with_upwards_trend: +107 Bytes| |packages/core/src/routes/experience/index.ts|:chart_with_upwards_trend: +77 Bytes| |packages/core/src/routes/experience/utils.ts|:chart_with_upwards_trend: +587 Bytes|