curl --request GET \
--url https://api.example.com/auth/verify \
--header 'Authorization: <authorization>'{
"error": "<string>"
}Verify the validity of an authentication token
curl --request GET \
--url https://api.example.com/auth/verify \
--header 'Authorization: <authorization>'{
"error": "<string>"
}200 with no body when the token is valid.
{
"error": "Unauthorized: No token provided"
}
403 with no body when the token is invalid or expired.
{
"error": "An unexpected error occurred. Please try again later."
}
curl -X GET https://api.planttogether.com/auth/verify \
-H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."