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.39k stars 412 forks source link

feat(core): add hasPassword field to custom JWT user context #6096

Closed darcyYe closed 2 months ago

darcyYe commented 2 months ago

Summary

Add hasPassword field to custom JWT user context.

Testing

Should be covered by integration test.

Checklist

github-actions[bot] commented 2 months ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +1.01 KB

Diff by File |Name|Diff| |---|---| |.changeset/sharp-cooks-explain.md|:chart_with_upwards_trend: +123 Bytes| |packages/console/src/pages/CustomizeJwtDetails/utils/config.tsx|:chart_with_upwards_trend: +22 Bytes| |packages/core/src/libraries/jwt-customizer.ts|:chart_with_upwards_trend: +52 Bytes| |packages/integration-tests/src/__mocks__/jwt-customizer.ts|:chart_with_upwards_trend: +42 Bytes| |packages/integration-tests/src/tests/api/oidc/get-access-token.test.ts|:chart_with_upwards_trend: +120 Bytes| |packages/schemas/src/types/logto-config/jwt-customizer.ts|:chart_with_upwards_trend: +675 Bytes|