Skip to main content
GET
/
v1
/
auth
/
me
Get current user profile
const options = {method: 'GET'};

fetch('http://localhost:8000/v1/auth/me', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "id": "<string>",
    "email": "jsmith@example.com",
    "name": "<string>",
    "image": "<string>",
    "emailVerified": true,
    "createdAt": "<string>",
    "role": "<string>"
  },
  "meta": {
    "requestId": "<string>",
    "timestamp": "<string>"
  }
}

Response

User profile

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required