Closed harshmsomani closed 2 years ago
import React from 'react'; import { Admin, Resource, ListGuesser } from "react-admin"; import { buildAuthProvider, buildDataProvider } from "react-admin-amplify"; import * as mutations from "./graphql/mutations"; import * as queries from "./graphql/queries"; function App() { return ( <Admin authProvider = {buildAuthProvider({ authGroups: [] })} dataProvider = {buildDataProvider({ queries, mutations })}> <Resource name = "User" list={ListGuesser}/> </Admin> ); } export default App;
Auth mode was setup using AMAZON_COGNITO_USER_POOLS, I am able to login and logout, see the user details on Cognito & DynamoDB.
Auth mode was setup using AMAZON_COGNITO_USER_POOLS, I am able to login and logout, see the user details on Cognito & DynamoDB.