Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created April 19, 2019 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandeepmittal/6304f76e912af10c3539b25eef03f821 to your computer and use it in GitHub Desktop.
Save amandeepmittal/6304f76e912af10c3539b25eef03f821 to your computer and use it in GitHub Desktop.
//App.js
// ...
import Amplify from "aws-amplify"
import awsmobile from "./aws-exports"
import { withAuthenticator } from "aws-amplify-react"
Amplify.configure(awsmobile)
//...
export default withAuthenticator(App, true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment