Fumadocs

Get authenticated user

GET
/me

Find yourself they say. That's what you can do here.

Authorization

AuthorizationBasic <token>

Basic HTTP authentication

In: header

Response Body

curl -X GET "https://example.com/me"
{  "id": 1,  "name": "Marc"}
{  "type": "https://example.com/errors/not-found",  "title": "Unauthorized",  "status": 401,  "detail": "You are not authorized to access this resource."}
{  "type": "https://example.com/errors/forbidden",  "title": "Forbidden",  "status": 403,  "detail": "You are not authorized to access this resource."}