From 08f32986fc49e2913d98f163ad9ab706347d827d Mon Sep 17 00:00:00 2001 From: asvarcas Date: Sun, 17 Oct 2021 16:05:45 -0300 Subject: [PATCH] Add getIdentity function to the authProvider reference --- docs/Admin.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Admin.md b/docs/Admin.md index 0d240b05a81..b8ffc1460da 100644 --- a/docs/Admin.md +++ b/docs/Admin.md @@ -68,7 +68,7 @@ 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 = { @@ -76,6 +76,7 @@ const authProvider = { logout: params => Promise.resolve(), checkAuth: params => Promise.resolve(), checkError: error => Promise.resolve(), + getIdentity: params => Promise.resolve(), getPermissions: params => Promise.resolve(), };