Skip to content

karamvirsingh98/joute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Joute

A simple JWT issuer designed to run on vercel's edge network.

The name is a pun on the french word 'joust', the fact that it sounds like a silly pronouncination of the vowel sounds j,w,t, and the fact that authentication is maybe like jousting somehow?

Usage

install via yarn add joute, or npm install joute

code example:

import Joute from "joute";

const j = new Joute("<your-signing-secret>");

// issues a
const payload = {}; // could be anything, eg. { id: '<user-id>' }
const token = j.issue(payload);

const payload = j.verify(token);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published