Skip to content

Commit

Permalink
Merge pull request #6881 from marmelab/fix-simple-ap-return
Browse files Browse the repository at this point in the history
Fix simple project  `authProvider.getIdentity` returns an object instead of a promise
  • Loading branch information
djhi authored Nov 20, 2021
2 parents 58e7ba3 + 26191fa commit d3a1b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/simple/src/authProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ export default {
return Promise.resolve(role);
},
getIdentity: () => {
return {
return Promise.resolve({
id: localStorage.getItem('login'),
fullName: localStorage.getItem('user'),
avatar: localStorage.getItem('avatar'),
};
});
},
};

0 comments on commit d3a1b55

Please sign in to comment.