UdacityMobileWebScholarship / guess-quote

This application is a collaborative project made by the Google Udacity Mobile Web Specialist Scholars.
MIT License
22 stars 48 forks source link

Logout route added, Env added to Secret string #61

Closed sounak07 closed 6 years ago

sounak07 commented 6 years ago

This is a new pull after cloning develop branch, removing conflicts, adding log out route and creating env for super secret string.

danivijay commented 6 years ago

Is this root necessary? The token can be simply removed o front-end IMO. Is this PR is a result of some issue? Please enlighten me @sounak07 @skyshader

skyshader commented 6 years ago

So the token has been stored in mongodb by the person who created login and auth mechanism here. Hence it was required to remove the token from the user model.

This should work fine, however if it doesn't we will remove the token from user model and just delete the token from frontend.