Hello everyone. I am trying to figure out why my s...
# general
m
Hello everyone. I am trying to figure out why my session doesn't contain the
credentials
property (inside identity) as described here after logging in?
m
Hello @many-apartment-98069 I think that is an issue in the docs here - the session payload does not contain credentials. @bland-eye-99092 I think I saw this issue before, do you know where it comes from in the API docs?
b
the endpoint only returns basic information by design. As of now, there is no way to enable it to return the credentials as well. However, depending on your use case, you might use the getIdentity admin operation to fetch the identity, which includes the credentials.
m
No I mean do you know why it is included in the API reference for toSession ?
b
because it's part of the identity spec, but we don't fetch the credentials from the database in the
toSession
call (as that's a relative expensive operation, and toSession needs to be fast). Ideally we would adjust the spec to not include credentials here, as there is no way to fetch the credentials.