Get the signed-in user.
GET
/api/auth/me
const url = 'https://api.tradr.cloud/api/auth/me';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tradr.cloud/api/auth/meAuthed. The canonical “who am I” call — clients use it on boot to decide whether a session is still valid.
Responses
Section titled “Responses”The current user.
Media typeapplication/json
object
email
string format: email
emailVerified
boolean
id
string format: uuid
isAdmin
boolean
Examplegenerated
{ "email": "hello@example.com", "emailVerified": true, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "isAdmin": true}No valid session.