coinratecap / Backend

This is the backend of coinratecap
MIT License
6 stars 6 forks source link

implements session based local authentication #34

Closed nateshmbhat closed 3 years ago

nateshmbhat commented 3 years ago

@Wisdom132 once we merge this PR , you can change the admin service methods to use the same approach.

This PR contains local-authentication implemented using sessions. I have raised this PR separately so that you can use this to update your admin services.

To test local authentication : you can go to this URL in browser : http://localhost:3000/v1/user/login

Status of Google and facebook authentication changes : I am currently working on it. Will raise a separate PR for that once its done. meanwhile, please review this PR @Wisdom132

This addresses issues :

30

25

Testing :

Tested this implementation for local user registration and login. works fine 👍🏻 user stays logged in when you refresh browser.