1.0.18 • Published 12 months ago

sjwt v1.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

SimpleJWT

The SimpleJWT sjwt library simplifies using simplejwt.com. It gives you simple tools for your end users to register, login, etc for a complete user management experience. All end users have an associated JSON store that you can access as well.

Basic Usage

  • npm install sjwt

  • import {register} from 'sjwt';

  • const response = await register({email, password, projectId});

  • import {getAuthenticatedUser} from 'sjwt';

  • const user = await getAuthenticatedUser({projectId});

Documentation

WIP @ simplejwt.com

Building and manually testing before publishing

  1. npm run build creates the dist directory
  2. npm pack creates a tar file
  3. To test, in some other project's package.json dependencies, put "sjwt": "file:<path to tgz file>"

Note, sometimes you need to clean npm's cache:

  1. npm cache ls | grep sjwt list all sjwt cache entries
  2. npm cache clean <an entry from above> delete an entry

Note, you often need to remove checksums from package-lock.json as well

1.0.18

12 months ago

1.0.17

12 months ago

1.0.16

12 months ago

1.0.15

2 years ago

1.0.10

2 years ago

1.0.8

2 years ago

1.0.14

2 years ago

1.0.5

2 years ago

1.0.13

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago