authts / oidc-client-ts

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
https://authts.github.io/oidc-client-ts/
Apache License 2.0
1.38k stars 207 forks source link

profile of User not containing data from user info #1726

Open jp2s opened 5 days ago

jp2s commented 5 days ago

Hello,

I have a question about the profile property from User.

The documentation says the following: The claims represented by a combination of the id_token and the user info endpoint. However when we use it in our application, profile only contains data from the id_token but not from user info.

Are we doing something wrong that the user info data is not present in profile or is it a bug ?

I also tested the content of profile using the original repo oidc-client-js and there it contained all the data from the id_token and from user info.

Regards Jonas

pamapa commented 3 days ago

loadUserInfo has been changed from true to false within this library. See https://github.com/authts/oidc-client-ts/blob/main/docs/migration.md. You must set this configuration property by your own...