Open maximegel opened 3 years ago
Claims should be stored and returned exacly the same as they are in the token.
But when merging claims from the userinfo endpoint they have to get put in there somehow.
@brockallen Thats why I have duplicates? One coming from the ID token and one coming from the userinfo endpoint? It kind of make sense but its not very intuitive. Would it be possible to merge identical claims and return them as an object?
Thats why I have duplicates? One coming from the ID token and one coming from the userinfo endpoint?
I don't know, but it's possible.
Current behavior
Our ID token contains claims with uri as a key and an object as the value:
For some reason, oidc-client store and return these claims as an array with duplicates:
In the image above, elements at index 0 and 1 are structurally the same.
Expected behavior
Claims should be stored and returned exacly the same as they are in the token.
Environment
"oidc-client": "1.11.5"