- Configure a Custom Database in Auth0 and point it to your AWS Cognito user pool.
- Set Import Users to Auth0 to True.
- Define two scripts: one to get a user and another to login a user.
- With the Auth0 get-user and login scripts, use the amazon-cognito-identity-js npm package APK to automatically migrate your users.