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.
0.4.9
Version - Improved the error message coming from the client
register
andsignIn
functions - Example: added an error message to the Register and SignIn pages to show the improved error message
- Docs: updated docs for
register
andsignIn
to illustrate how to use the error message
0.4.8
Version - Replaced
libsodium-wrappers-sumo
withlibsodium
- Removed
nock
as adevDependency
- 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)
0.4.7
Version - 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
0.4.6
Version - Bug fix related to
verifyEndpoint
(thank you @joshuavial) - Updated dependencies to fix known security vulnerabilities
0.4.5
Version - Updated dependencies to fix known security vulnerabilities
0.4.4
Version - Added
server/token/getTokenDecoder
to replaceserver/token/decode
to allow a route to succeed regardless if a token is provided or not. Currentlydecode
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.
0.4.3
Version - Updated dependencies to fix known security vulnerabilities
0.4.2
Version - Updated dependencies to fix known security vulnerabilities
0.4.1
Version - Prevent publishing the tutorial in the npm package
0.4.0
Version 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 togetDecodedToken
to matchgetEncodedToken
- The
createUser
function passed toserver/applyAuthRoutes
now takes a singleuser
object parameter instead ofusername
andpassword
parameters