You need to select your AWS region to go the the Cognito dashboard.
The Amazon Cognito Provider comes with a set of default options:
You can override any of the options to suit your own use case.
import CognitoProvider from "next-auth/providers/cognito";
The issuer is a URL, that looks like this:
PoolId is from
General Settings in Cognito, not to be confused with the App Client ID.
Make sure you select all the appropriate client settings or the OAuth flow will not work.