@auth-core/shared

v0.0.7

Published

Framework-agnostic authentication core: password hashing, JWTs, refresh rotation, revocation, pluggable storage

Readme

@auth-core/shared

Shared TypeScript types and typed error classes used by every @auth-core/* package: RevocationStore, SessionStore, SigningKey, TokenPayload, AuthHooks, and the AuthError hierarchy (InvalidTokenError, ExpiredTokenError, RevokedTokenError, RefreshReuseDetectedError, WeakPasswordError, etc).

You normally don't install this directly — it's a dependency of @auth-core/core, @auth-core/jwt, and @auth-core/hashing. Install it directly only if you're implementing a custom storage adapter or hashing driver and need the interfaces without pulling in the rest.

npm install @auth-core/shared
import { RevokedTokenError, type SessionStore } from "@auth-core/shared";

Full documentation: https://github.com/YOUR_GITHUB_ORG/auth-core