npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

authenticare

v0.4.9

Published

A JWT helper library for full-stack Node apps

Downloads

561

Readme

Authenticare

A JWT helper library for full-stack Node apps

You can find an example fullstack application in the example folder.

You can find the docs for the most important functions exported for both client-side and server-side use in the docs folder.

Version 0.4.9

  • Improved the error message coming from the client register and signIn functions
  • Example: added an error message to the Register and SignIn pages to show the improved error message
  • Docs: updated docs for register and signIn to illustrate how to use the error message

Version 0.4.8

  • Replaced libsodium-wrappers-sumo with libsodium
  • Removed nock as a devDependency
  • Updated all possible dependencies
  • Moved tests to same folder as code under test
  • Running tests require NodeJS version 14 or greater (due to use of the optional chaining operator ?)
  • Removed testing folder - I might bring it back later if I can get happy with it
  • Improved lint config and applied fixes throughout codebase (thanks @joshuavial)
  • Example: require username and password on sign-in and register forms
  • A LOT of code refactorings (mostly aesthetics)

Version 0.4.7

  • Updated dependencies
  • Added the ability to configure token expiration (thank you @nisidazza)
  • Removed the tutorial (too much to maintain) the example should suffice
  • Example: moved BASE_API_URL environment variable into a config file
  • Example: refactored tests

Version 0.4.6

  • Bug fix related to verifyEndpoint (thank you @joshuavial)
  • Updated dependencies to fix known security vulnerabilities

Version 0.4.5

  • Updated dependencies to fix known security vulnerabilities

Version 0.4.4

  • Added server/token/getTokenDecoder to replace server/token/decode to allow a route to succeed regardless if a token is provided or not. Currently decode will throw if a token is not found. decode is deprecated and will be removed in v0.5.0.
  • Updated the example an tutorial to reflect this change.
  • Updated dependencies to fix known security vulnerabilities.

Version 0.4.3

  • Updated dependencies to fix known security vulnerabilities

Version 0.4.2

  • Updated dependencies to fix known security vulnerabilities

Version 0.4.1

  • Prevent publishing the tutorial in the npm package

Version 0.4.0

Non-breaking changes

  • client/getDecodedToken was added
  • client/getAuthorizationHeader was added (getEncodedToken is still available, but less relevant now)
  • A tutorial was added (but it still needs more work)

Breaking changes

  • client/getAuthToken was function renamed to getDecodedToken to match getEncodedToken
  • The createUser function passed to server/applyAuthRoutes now takes a single user object parameter instead of username and password parameters