Used to explore ways to perform OAuth federated sign-in in Next.js using Amazon Cognito service. Uses the hosted UI.
Fill in next.config.js.example
and remove the .example
.
Make sure that your Cognito OAuth 2.0 settings allow the following scopes: email, openid, profile, aws.cognito.signin.user.admin.
Get your JWKS at https://cognito-idp.{region}.amazonaws.com/{userPoolId}/.well-known/jwks.json
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
The easiest way to deploy your Next.js app is to use the ZEIT Now Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.