curl --request GET \
--url https://api.example.com/user/displayname \
--header 'Authorization: <authorization>'{
"displayName": "<string>",
"error": "<string>"
}Retrieve the display name for the authenticated user
curl --request GET \
--url https://api.example.com/user/displayname \
--header 'Authorization: <authorization>'{
"displayName": "<string>",
"error": "<string>"
}Authorization header with a valid JWT token.
{
"displayName": "John Doe"
}
{
"error": "No Token Provided"
}
{
"error": "Internal server error"
}
curl -X GET https://api.plant-together.com/user/displayname \
-H "Authorization: YOUR_JWT_TOKEN"
express/src/index.ts:282-291