Closed SamSalvatico closed 2 months ago
Thanks for reporting. The issue is actually with UserInfoResponse
type, not with IdTokenClaims
, though. Since we need to consider the token size, some claims that are available in UserInfoResponse
are not available in IdTokenClaims
.
Describe the bug
I noticed that in logto-io/js , in the
IdTokenClaims
definition (https://github.com/logto-io/js/blob/75289f3d01b3aa0c35383585b2adc4e5461bafb0/packages/js/src/utils/id-token.ts#L7) theorganization_data
array is missing but is returning when asking for user infoExpected behavior
organization_data
is available in the IdTokenClaims typeHow to reproduce?
Invoke the
getLogtoContext
method withfetchUserInfo
set totrue
If an organisation role is assigned theorganisation_data
will be returned, but it is missing in the type definitionContext
Screenshots