lively-scientist-17848
11/11/2024, 4:06 PMissued_at
and authenticated_at
in the /whoami
response?brief-egg-61061
11/11/2024, 4:06 PMbrief-egg-61061
11/11/2024, 4:06 PMissued_at
and authenticated_at
in the /whoami
response for Ory Kratos: 1. `authenticated_at`: This timestamp indicates when the user was authenticated, i.e., when they successfully logged in or when their identity was verified [Kratos API Reference](https://www.ory.sh/docs/kratos/reference/api). 2. `issued_at`: This timestamp represents when the session was issued. It's usually equal or close to the authenticated_at
time [Kratos API Reference](https://www.ory.sh/docs/kratos/reference/api). The main difference is that authenticated_at
specifically refers to the moment of authentication, while issued_at
refers to when the session was created, which typically happens immediately after authentication. Here's an example from the knowledge sources showing both fields in a session response: json { "authenticated_at": "2020-09-03T21:32:47.5881038Z", "issued_at": "2020-09-03T21:32:47.5642688Z" }
As you can see, these timestamps are very close to each other, with issued_at
being slightly earlier in this case [Docs > Kratos > Self-service > Flows > Registration](https://www.ory.sh/docs/kratos/self-service/flows/user-registration#with-auto-login-on-registration).