New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

authsessions

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authsessions - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

3

package.json
{
"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
```
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc