hatchways / team-hulk

0 stars 0 forks source link

page refresh fixed #65

Closed hassanfarahani closed 3 years ago

hassanfarahani commented 3 years ago

In this PR, page refresh issue got fixed. Changes:

  1. API call on UserContext (/api/signin) removed
  2. JWT route (/api/JWT) changed in that it is now getting the user object from the db and send it to the App.js file
  3. on App.js, setUser(req.data.user) changed to setUser(req.data)