Authora is an auth library written in TypeScript that abstracts away the complexity of handling sessions. It works alongside your database to provide an API that's easy to use, understand, and extend.
Documentation not yet completed for this package so please proceed with caution. also still under testing
- No more endless configuration and callbacks
- Fully typed
- Works in any runtime - Node.js, Bun, Deno, Cloudflare Workers
- Extensive database support out of the box
import { Authora } from "authora";
const Authora = new Authora(new Adapter(db));
const session = await Authora.createSession(userId, {});
await Authora.validateSession(session.id);
Authora is an open source library released under the MIT license
npm i authora
pnpm add authora
yarn add authora