Skip to content

Commit 26191fa

Browse files
author
asvarcas
committed
Fix getIdentity return an object instead of a promise
1 parent 5f46fd6 commit 26191fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/simple/src/authProvider.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ export default {
6060
return Promise.resolve(role);
6161
},
6262
getIdentity: () => {
63-
return {
63+
return Promise.resolve({
6464
id: localStorage.getItem('login'),
6565
fullName: localStorage.getItem('user'),
6666
avatar: localStorage.getItem('avatar'),
67-
};
67+
});
6868
},
6969
};

0 commit comments

Comments
 (0)