Get current user

Get the authenticated user, including their available teams and theme.

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/v1/auth/me
import Scalar from '@scalar/sdk';

const client = new Scalar({
  bearerAuth: process.env['BEARER_AUTH'], // defaults to the BEARER_AUTH env var
});

const authentication = await client.authentication.listCurrentUser();

console.log(authentication);
{
  "uid": "nanoid()",
  "createdAt": 0,
  "updatedAt": 0,
  "email": "hello@example.com",
  "theme": "string",
  "activeTeamId": "string",
  "hasGithub": false,
  "teams": [
    {
      "uid": "string",
      "name": "string",
      "imageUri": "string"
    }
  ]
}