Closed maxdobeck closed 6 years ago
User is currently in a logged in state on frontend but needs the other standard data (memberID, email, name). This data is empty in vuex and whenever a route is encountered that requires authentication we should be making a call to the api. At no point should this info be stored on the browser.
Need a curMember
route or something that checks if a session is good and then grabs the id from the cookie.
Added a /curmember route that checks for a valid session and returns all data for the user to view. This approach only works since the user's data is needed everywhere. All other pages and resources must fetch with existing routes.
Addressed in add-schedules
and will fix the broken dev environment.
For the issue
Current user data should be fetched when browser reloads (Stop using local storage)
in the frontend.The handle should return a payload that contains all relevant information for the current user (if the Session is good).