-
Notifications
You must be signed in to change notification settings - Fork 0
Log in
Petar Scepanovic edited this page Jan 6, 2020
·
4 revisions
POST request at http://localhost:9000/login
After we created a new account and have confirmed the email, now we can login:
example
{
"email": "pdamda@gmail.com",
"password": "password"
}
response
{
"message": "successfully logged in",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWJqZWN0IjoiNWRmYmQ3Y2U0OTljYmUzMWRjYmMwOWRlIiwiaWF0IjoxNTc2ODU4NDMyLCJleHAiOjE1NzcyOTA0MzJ9.TV-a_rhE4nwRs3_USEO_UECOod_xnlHayobnm4lrokc",
"user": {
"confirmed": true,
"_id": "5dfbd7ce499cbe31dcbc09de",
"email": "pdamda@gmail.com",
"password": "",
"type": "school",
"createdAt": "2019-12-19T20:04:30.470Z",
"updatedAt": "2019-12-20T15:52:34.046Z",
"__v": 0
}
}
Student-Art-Collection
Getting Started