@auth-core/memory
v0.0.7
Published
In-memory RevocationStore and SessionStore adapters (single-process / testing)
Maintainers
Readme
@auth-core/memory
In-memory RevocationStore and SessionStore implementations for
@auth-core/core — single
process only (development, tests, or a single-instance deployment).
For anything running more than one process/instance, use
@auth-core/redis instead
— revocation and session state must be shared across every process handling
requests.
npm install @auth-core/memoryimport { createAuth } from "@auth-core/core";
import { MemoryRevocationStore, MemorySessionStore } from "@auth-core/memory";
const auth = createAuth({
// ...
stores: {
revocation: new MemoryRevocationStore(),
session: new MemorySessionStore(),
},
});Full documentation: https://github.com/YOUR_GITHUB_ORG/auth-core
