Add details for one or more providers (e.g. Google, Twitter, GitHub, Email, etc).
Using SQLite3 database.
Followed instruction to create a user pool according to docs
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html
Make sure that
Generate client secret is Disabled
(ALLOW_ADMIN_USER_PASSWORD_AUTH) is Enabled
Here's how the settings should l-ook like ,
and also set the scopes accoriding to nextauth docs
https://next-auth.js.org/providers/cognito
Environment file
COGNITO_CLIENT_ID = <CLIENT_ID>
COGNITO_DOMAIN = <COGNTIO_DOMAIN_WITHOUT_HTTPS://>