Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 919 Bytes

README.md

File metadata and controls

43 lines (31 loc) · 919 Bytes

cognito-auth-example

Cognito Authentication Example w/ React

Installation

Clone repository

$ git clone https://github.com/DaisukeOtaka/cognito-auth-example.git

Install Required Packages

$ cd cognito-auth-example
$ npm install

Usage

Environment Varilables

  • PORT: (Optional) Express Port Number
  • REGION: AWS Cognito Region
  • COGNITO_IDENTITY_POOL_ID: Cognito Identity Pool ID
  • COGNITO_USER_POOL_ID: User Pool ID
  • COGNITO_APP_CLIENT_ID: App Client ID
  • INVOKE_URL: AWS API Gateway Invoke URL
  • DEFAULT_USERNAME: Default Username for Sign In
  • DEFAULT_PASSWORD: Default Password for Sign In

Run

$ npm start

Screenshots

Sign In

Sign In

My Page

My Page