Skip to main content

Memory Adapter

In-process storage. Data is lost on restart. Use only for tests and prototypes.

Usage

from nexfetch_auth.db.adapters.memory import memory_adapter

auth = await nexfetch_auth(secret="...", database=memory_adapter())

# Or just omit database — memory is the default
auth = await nexfetch_auth(secret="...")