authsessions
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "authsessions", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "dist/index.js", | ||
@@ -28,2 +28,3 @@ "types": "dist/index.d.ts", | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
@@ -30,0 +31,0 @@ "track": "changeset add", |
@@ -1,7 +0,24 @@ | ||
# Sessions | ||
# authsessions | ||
> Sessions contains a set of different session management classes. | ||
> authsessions contains a set of different framework-agnostic session management classes. | ||
Each sessions variant implements a general `ISessions` interface and may be swapped in as a replacement for any existing sessions provider. | ||
- `InMemorySessions` | ||
- `RedisSessions` | ||
> All sessions are easily replacable! All of them work the same, and only have different persistance settings. | ||
You can learn more about Protocol Oriented Programming in [this great WWDC talk](https://developer.apple.com/videos/play/wwdc2015/408/). | ||
#### Installing | ||
```sh | ||
npm i authsessions | ||
pnpm i authsessions | ||
yarn add authsessions | ||
``` | ||
## Quick Start | ||
@@ -51,2 +68,4 @@ | ||
session: SessionId | null | ||
// NOTE: We use a generic interface. This way, we can replace the implementation depending on our needs. | ||
sessions: ISessions<string, SessionMeta> | ||
@@ -102,5 +121,1 @@ } | ||
MIT @ Matic Zavadlal | ||
``` | ||
``` |
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
4175
0
120