Last login date on user profile does not match user activity on tenant logs

Problem statement

The last_login date on the user profile does not match the user activity on tenant logs.

Solution

The last_login date on the user profile is updated when the user completes the login flow, which creates a session for that user.

That date will not change if the user continues to use that same session. For example, to get a new access token. This means that the user may appear on the tenant logs as having activity, but the last login date could be much older than that.