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 verified interaction guard middleware #6336

Closed simeng-li closed 1 month ago

simeng-li commented 1 month ago

Summary

Extract profile routes shared verified interaction guard logic as a middleware.

Testing

Guard by integration tests.

Checklist

github-actions[bot] commented 1 month ago

COMPARE TO master

Total Size Diff :chart_with_downwards_trend: -210 Bytes

Diff by File |Name|Diff| |---|---| |packages/core/src/routes/experience/profile-routes.ts|:chart_with_downwards_trend: -210 Bytes|