TypeScript
const options = {method: 'GET'}; fetch('http://localhost:8000/api/v1/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>" } }
Returns the authenticated user profile information
User profile
true
Show child attributes
Was this page helpful?