Skip to main content
GET
/
v1
/
auth
/
me
curl https://gpuoutlet.ai/v1/auth/me --cookie "sid=$SID"
{
  "user": {
    "id": "usr_01H8E3...",
    "email": "you@example.com",
    "createdAt": "2026-06-07T08:14:22Z"
  },
  "expiresAt": "2026-07-07T08:14:22Z"
}
user
object
required
The authenticated user. Always present on 200.
expiresAt
string
required
ISO 8601 UTC timestamp when the current session will expire.
curl https://gpuoutlet.ai/v1/auth/me --cookie "sid=$SID"
{
  "user": {
    "id": "usr_01H8E3...",
    "email": "you@example.com",
    "createdAt": "2026-06-07T08:14:22Z"
  },
  "expiresAt": "2026-07-07T08:14:22Z"
}

How the dashboard uses this

The AuthProvider calls /v1/auth/me on every page load. If 401, the user is unauthenticated; if 200, the user object hydrates useAuth(). The dashboard polls this endpoint every 5 minutes as a session keepalive — the server-side expiresAt slides forward on every authenticated request, so as long as you have the dashboard open, the session stays fresh.