curl --request GET \
--url http://localhost:4000/api/auth/status \
--header 'Authorization: Bearer <token>'
{
"authenticated": true,
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"dynamicUserId": "<string>",
"handle": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"lastLoginAt": "2023-11-07T05:31:56Z",
"status": "active",
"tier": "bronze"
}
}
Check if the current session is authenticated
curl --request GET \
--url http://localhost:4000/api/auth/status \
--header 'Authorization: Bearer <token>'
{
"authenticated": true,
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"dynamicUserId": "<string>",
"handle": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"lastLoginAt": "2023-11-07T05:31:56Z",
"status": "active",
"tier": "bronze"
}
}
Dynamic authentication JWT token
Authentication status
The response is of type object
.