This demo project demonstrates how to log a user into a remix project using AWS apis.
Install CDK deps + the cdk project to spin up a new cognito pool and cogito client id.
- Install any necessary dependencies in CDK project
- Run
cdk deploy CognitoRemixDemoStack
in your terminal - will spin up a new cognito pool and cogito client id. - Fill out remix .env variables (see .env.example)
- After CDK deploy - grab userpool + client ids from outputs and paste into new remix .env file
- Install any necessary dependencies in remix project
- Run
yarn build
- Run
yarn dev
- Navigate to http://localhost:3000/ in your browser.
- 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.
- Log in