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
exportdefault{// called when the user attempts to log inlogin: ({ username })=>{localStorage.setItem('username',username);// accept all username/password combinationsreturnPromise.resolve();},// called when the user clicks on the logout buttonlogout: ()=>{localStorage.removeItem('username');returnPromise.resolve();},// called when the API returns an errorcheckError: ({ status })=>{if(status===401||status===403){localStorage.removeItem('username');returnPromise.reject();}returnPromise.resolve();},// called when the user navigates to a new location, to check for authenticationcheckAuth: ()=>{returnlocalStorage.getItem('username')
? Promise.resolve()
: Promise.reject();},// called when the user navigates to a new location, to check for permissions / rolesgetPermissions: ()=>Promise.resolve(),};
The text was updated successfully, but these errors were encountered:
I try use it
App.js
authProvider.js
The text was updated successfully, but these errors were encountered: