Skip to main content

myAuthLogs

Requires an authenticated session.

Lists the signed-in user's recent sign-in events, newest first, with device and location.

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 MyAuthLogs($limit: Int!) {
myAuthLogs(limit: $limit) {
id
createdAt
browser
device
errorMessage
event
}
}

Variables:

{
"limit": 0
}

Response:

{
"data": {
"myAuthLogs": [
{
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"browser": "string",
"device": "string",
"errorMessage": "string",
"event": "ACCOUNT_LOCKED"
}
]
}
}
myAuthLogs(
limit: Int! = 50
): [AuthLogEntry!]!

Arguments​

myAuthLogs.limit ● Int! non-null scalar​

How many events to return. Defaults to 50.

Type​

AuthLogEntry object​

One sign in or security event.