User
GET api/users
This route allows users to gain access to the app. Using OAuth, users sign in using their unique google sign-in credentials to gain access to the app
Expected Header:
"Content-Type": "application/json"
Example Response:
{
"_id": "58f57a0774628d03a8def07c",
"googleID": "107174370104406884799",
"name": "Carolina",
"email": "[email protected]",
"profilePic": "https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=50",
"accessToken": null,
"refreshToken": null,
"tokenTTL": 3600,
"tokenTimestamp": null,
"expiration": 1492486167.093,
"__v": 0
}
DELETE api/users
This route allows an authenticated user to delete their profile from the app. Upon success no body will be returned
Expected Header:
"Authorization": "Bearer <token>"