This is a NextJS boilerplate with SSR compatible, httpOnly cookie based AWS Cognito authentication using Redux for state management.
In next.config.js
...
env : {
USER_POOL_ID: 'xxxxxxxxxxxxxxxxx',
CLIENT_ID: 'xxxxxxxxxxxxxxxxxxxxxxxx'
},
...