Skip to main content

myAuthStats

Requires an authenticated session.

Summarizes the signed-in user's last 100 sign-in events: successful and failed sign-ins, distinct devices and IP addresses, and the 10 most recent events.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query MyAuthStats {
myAuthStats {
failedLogins
totalLogins
uniqueDevices
uniqueLocations
recentActivity {
id
createdAt
browser
device
errorMessage
event
}
}
}

Response:

{
"data": {
"myAuthStats": {
"failedLogins": 0,
"totalLogins": 0,
"uniqueDevices": 0,
"uniqueLocations": 0,
"recentActivity": [
{
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"browser": "string",
"device": "string",
"errorMessage": "string",
"event": "ACCOUNT_LOCKED"
}
]
}
}
}
myAuthStats: AuthStats!

Type​

AuthStats object​

Sign in figures.