Hi everyone, my userinfo endpoint is returning dat...
# general
q
Hi everyone, my userinfo endpoint is returning data i don't know what it is... Can someone explain what it is and how to obtain the traits of my user ?
{
"amr": [ "password" ], "aud": [ "c9bcb333-9ed5-408a-8fc1-8bea51dce9cd" ], "auth_time": 1721126303, "iat": 1721209753, "iss": "https://hydra.example.com", "rat": 1721209748, "sub": "97007fcd-fd0d-4ed8-82f0-cdf7a0ffb949" }
d
Hi @quaint-animal-23223, the userinfo endpoint return default standard data(aud, amr, iss, etc...) from the JWT generated by Hydra and what you added in your "session" in the consent process. You can refer to this line to show how to add data: https://github.com/ory/kratos-selfservice-ui-node/blob/master/src/routes/consent.ts#L29