Skip to content

Commit

Permalink
Merge pull request #6697 from WiXSL/doc-auth-getidentity
Browse files Browse the repository at this point in the history
[Doc] Add getIdentity function to the authProvider reference
  • Loading branch information
fzaninotto authored Oct 18, 2021
2 parents a950713 + 08f3298 commit b6bf2cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/Admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@ The `dataProvider` is also the ideal place to add custom HTTP headers, authentic

## `authProvider`

The `authProvider` prop expect an object with 5 methods, each returning a Promise, to control the authentication strategy:
The `authProvider` prop expect an object with 6 methods, each returning a Promise, to control the authentication strategy:

```jsx
const authProvider = {
login: params => Promise.resolve(),
logout: params => Promise.resolve(),
checkAuth: params => Promise.resolve(),
checkError: error => Promise.resolve(),
getIdentity: params => Promise.resolve(),
getPermissions: params => Promise.resolve(),
};

Expand Down

0 comments on commit b6bf2cd

Please sign in to comment.