Skip to content

Commit c782ca5

Browse files
authored
Merge pull request #6933 from marmelab/fix-auth-docs
[Doc] Fix authProvider example
2 parents e55502e + 9c7a327 commit c782ca5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/Authentication.md

+8
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ const authProvider = {
104104
throw new Error('Network error')
105105
});
106106
},
107+
checkAuth: () => {
108+
// Required for the authentication to work
109+
return Promise.resolve();
110+
},
111+
getPermissions: () => {
112+
// Required for the authentication to work
113+
return Promise.resolve();
114+
},
107115
// ...
108116
};
109117

0 commit comments

Comments
 (0)