@mtarh/jwt-fe
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Getting started

Base utils for working with JWT on frontend side.

Installation

Install with npm:

npm install @mtarh/jwt-fe

or with yarn:

yarn add @mtarh/jwt-fe

Examples

Parse JWT

import { parseJwt } from '@mtarh/jwt-fe'

parseJwt(token)

Sign data with JWT

import { signJwt } from '@mtarh/jwt-fe'

const payload = 'Any string data to be moved in data section'
const pem = 'PEM Certificate' // Privacy Enhanced Mail Certificate
const restData = {} // optional

signJwt(payload, pem, restData)

Readme

Keywords

Package Sidebar

Install

npm i @mtarh/jwt-fe

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

11.1 kB

Total Files

15

Last publish

Collaborators

  • blrplex