1.4.0 • Published 1 year ago

oauth2-server-redis v1.4.0

Weekly downloads
15
License
MIT
Repository
github
Last release
1 year ago

oauth2-server-redis

Build Status Download Status Sponsor on GitHub

Redis storage backend for oauth2-server

Features

  • Stores the following in Redis:
    • Access tokens
    • Refresh tokens
    • Authorization codes
  • Uses HMSET to store all data as keys (the token or code is the hash)
  • Respects TTL settings so that entries expire at the right time

Requirements

Installation

$ npm install --save @compwright/oauth2-server oauth2-server-redis redis

Usage

const OAuth2Server = require('@compwright/oauth2-server');
const redisStore = require('oauth2-server-redis');
const redis = require('redis');

const oauth = new OAuth2Server({
    model: {
        ...redisStore({
            redis: redis.createClient()
        })
    }
});

License

MIT license

1.4.0

1 year ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago