Skip to content

Nuxt.js SSR & AWS Cognito cookie (HttpOnly) base authentication boilerplate

License

Notifications You must be signed in to change notification settings

ja-klaudiusz/Nuxt.js-SSR-AWS-Cognito

Repository files navigation

Nuxt.js & AWS Cognito JWT authentication

This is Nuxt.js SSR boilerplate app with express.js sever and httpOnly cookie based authentication. You can find out how to securely add sign-up and sign-in functionality to your app and how to get, store and refresh JWT token.

Instalation steps

1. Create AWS account and go to the Cognito settings

2. Click Manage User Pools

3. Type pool name and click Step through settings

4. In the attributes tab check the options as below and click next

5. In the policies tab select as below

6. Next in the MFA tab select as below

7. Then in the App clients tab add an app client

8. Afterwards check as below

9. Next two steps you can skip and finally you will see some thing like this

10. Create .env file and save your Pool Id, App client id and Pool region

.env file in the root folder

UserPoolId=eu-central-1_X6gk9q9wU
ClientId=34awgjes6resft2q6w5dwry64
PoolRegion=eu-central-1

11. Finally install and run your app

npm install

npm run dev

About

Nuxt.js SSR & AWS Cognito cookie (HttpOnly) base authentication boilerplate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published