orange-guitar-65918
03/13/2024, 6:07 AM<http://localhost:4444>
,
})
);
async function getUserInfo(accessToken: string) {
console.log("Fetching user info...");
console.log(accessToken);
const { data } = await ory.getOidcUserInfo({
headers: { Authorization: "Bearer " + accessToken },
});
console.log(data);
}
Problem:
The response object I receive has a different structure than what's described in the Ory documentation:
Ory Documentation (https://www.ory.sh/userinfo):
My Json Response Data
{
"amr": ["password"],
"aud": ["myclient"],
"auth_time": 1710237207,
"iat": 1710308756,
"iss": "http://localhost:4444",
"rat": 1710308756,
"sub": "239b48b8-a87e-4fe3-b90a-023232e5a14b"
}
Are there common reasons for this structure mismatch?
Could this be caused by incorrect Ory Hydra configuration?
Might this be due to a version difference between my Ory Hydra instance and the documentation ?
Is it possible that customizations on the Ory Hydra side are affecting the response?