To get the information of loggedin user
URL: localhost:3000/user/me
Method: `GET
Authentication: Required
Required fields:
Optional fields:
Data:
Code: 200 OK
Content:
{
"role": "blogger",
"joined": "08 Apr 2021",
"_id": "606efbba17e43a04cce0286d",
"first_name": "Tazbinur",
"last_name": "Rahaman",
"email": "t@gmail.com",
"about": "I am a node js developer",
"address": "Jashore",
"job": "Software engineer"
}Condition: If accessToken in absent.
Code: 401 Unauthorized
Content:
{
"error": {
"status": 401,
"message": "JsonWebTokenError"
}
}