amplify-auth-next-storage
Advanced tools
Comparing version 0.0.0 to 1.0.0
{ | ||
"name": "amplify-auth-next-storage", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"description": "Isomorphic cookie storage for Next.js apps using @aws-amplify/auth", | ||
@@ -5,0 +5,0 @@ "main": "next-storage.js", |
@@ -12,2 +12,4 @@ # amplify-auth-next-storage | ||
```js | ||
// components/Component.js | ||
import Auth from '@aws-amplify/auth'; | ||
@@ -50,1 +52,15 @@ import NextStorage from 'amplify-auth-next-storage'; | ||
| secure | boolean | true | Cookie secure flag | | ||
### Notes | ||
If you're struggling to get `Auth.configure` to work properly on the server side, one workaround is to use something like `node-fetch` as the global fetch. | ||
```js | ||
// _app.js | ||
import fetch from 'node-fetch'; | ||
global.fetch = fetch; | ||
// ... the rest of your _app.js file | ||
``` |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4674
1
64