I'm trying to implement aws-amplify to my react-admin. Especially for the Authentication part.
Instead of having something like this: react-admin with Amplify NavBar on top
I'm looking to have "UserName" and "LogOut" button from "aws-amplify" nicely like the default view: default-navbar-screenshot
authProvider <code example>
:
const App = () => (
<Admin
dashboard={Dashboard}
authProvider={authProvider}
dataProvider={dataProvider}
>
<Resource name="users" list={UserList} icon={UserIcon} />
<Resource
name="posts"
list={PostList}
edit={PostEdit}
create={PostCreate}
icon={PostIcon}
/>
</Admin>
);
react-admin has an authProvider props that we can custom-made, but I have no clue at how to create a component that is connected to aws-amplify.