Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.03 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.03 KB

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

Check out our example website here

const options: AmeeOptions = {
  secret: process.env.AUTH_SECRET,
  cookieName: "sessionId"
};

type SessionData = {
  name: string;
  email: string;
};

export const amee = Amee<SessionData>(options);

Resources