AWS Cognito and Remix demo

This demo project demonstrates how to log a user into a remix project using AWS apis.

Getting Started

Install CDK deps + the cdk project to spin up a new cognito pool and cogito client id.

  1. Install any necessary dependencies in CDK project
  2. Run cdk deploy CognitoRemixDemoStack in your terminal - will spin up a new cognito pool and cogito client id.
  3. Fill out remix .env variables (see .env.example)
  4. After CDK deploy - grab userpool + client ids from outputs and paste into new remix .env file
  5. Install any necessary dependencies in remix project
  6. Run yarn build
  7. Run yarn dev
  8. Navigate to http://localhost:3000/ in your browser.
  9. In the AWS console, navigate to Cognito pool and add user. Choose to verify email at this time and to send email of temp password.
  10. Log in