Closed sounak07 closed 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
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.
This is a new pull after cloning develop branch, removing conflicts, adding log out route and creating env for super secret string.