diff --git a/examples/simple/src/authProvider.tsx b/examples/simple/src/authProvider.tsx index 08249bcbcd3..c1a6c66ba49 100644 --- a/examples/simple/src/authProvider.tsx +++ b/examples/simple/src/authProvider.tsx @@ -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'), - }; + }); }, };