Does OAuth Token Refresh Count as a Login in FusionAuth Reports?
-
In the FusionAuth UI, the Login report displays logins over a specified time period.
Does using an OAuth refresh grant or refreshing an access token via the /api/jwt/refresh API count as a login in this report? While a refresh isn’t a traditional login, one could argue that obtaining a new access token qualifies as a login event.
-
Yes, exchanging a refresh token for a new access token (JWT) does count as a login event in the Login report.
Events That Count as a "Login":
- A login is completed using any Login API (e.g., normal login, one-time login, passwordless login, Identity Provider login, or Connector-based login).
- A user is created with a password (whether through self-service registration or the Registration API).
- A refresh token is exchanged for a new JWT.
- A user successfully completes a 2FA login.
For more details, refer to:
What Makes a User Active? -