Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regenrek/nuxt-aws-amplify-auth
Simple aws-amplify auth boilerplate
https://github.com/regenrek/nuxt-aws-amplify-auth
Last synced: 24 days ago
JSON representation
Simple aws-amplify auth boilerplate
- Host: GitHub
- URL: https://github.com/regenrek/nuxt-aws-amplify-auth
- Owner: regenrek
- Created: 2021-01-13T07:39:40.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T11:28:38.000Z (almost 4 years ago)
- Last Synced: 2024-05-19T07:45:31.249Z (8 months ago)
- Language: Vue
- Homepage:
- Size: 198 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nuxt-aws-amplify-auth
### ✔️ Cache Disabled
[Demo Link](https://nuxt-aws-amplify-auth-bepxlqbvg.vercel.app/)
### ❌ Cache Enabled
With `Cache-Control` enabled it will cache server response to speed the website up but **user sessions will be shared across the application**. This has the effect that you're logged in with someone else user account which of course shouldn't happen.
```
res.setHeader('Cache-Control', 's-maxage=10, stale-while-revalidate')
```Reproduce:
1. Login with given credentials on login page.
2. Open a new icognito tab and see that you still loggedin[Demo Link](https://nuxt-aws-amplify-auth-o76ccy6cd.vercel.app/)
## Build Setup
```bash
# install dependencies
$ yarn install# serve with hot reload at localhost:3000
$ yarn dev# build for production and launch server
$ yarn build
$ yarn start# generate static project
$ yarn generate
```For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
# nuxt-aws-amplify-auth