You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CHECK_AUTH](context){if(JwtService.getToken()){ApiService.setHeader();ApiService.get("user").then(({ data })=>{context.commit(SET_AUTH,data.user);}).catch(({ response })=>{context.commit(SET_ERROR,response.data.errors);});}else{context.commit(PURGE_AUTH);}}
Those promise calls could be simplified with async and await calls.
Issue Summary:
In the auth.module.js here you have got some code like:
Those promise calls could be simplified with async and await calls.
Resources:
Acceptance Criteria:
.then(...
or.catch(...
block or any promise like structureThe main issue can be found here #5
The text was updated successfully, but these errors were encountered: