2.2.4 • Published 10 months ago
amee v2.2.4
Amee
Amee is a TypeScript library designed for managing sessions with JWTs. It simplifies user authentication with a secure and easy-to-use approach.
Features
- Easy to implement
- Fully typed
- Works in any runtime (Node.js, Deno, Bun, Couldflare Workers)
Installation
npm | bun | yarn | pnpm |
---|---|---|---|
npm i amee | bun add amee | yarn add amee | pnpm add amee |
Usage
const options: AmeeOptions = {
secret: process.env.AUTH_SECRET,
cookieName: "sessionId"
};
type SessionData = {
name: string;
email: string;
};
export const amee = Amee<SessionData>(options);