derelict
v2.3.1
Published
Easy Stateless Authentication for Express
Downloads
71
Readme
Derelict
Derelict is an Express package that is painless to setup, and provides stateless JWT authentication and XSRF protection out of the box.
Updating 1.1 -> 2
Breaking Changes and new features, more detailed readme coming soon.
Updating 1.9 -> 1.10
1.10 changes the requirements for updateUser.
updateUser should now accept an object of query parameters, and an object of properties to update.
e.g:
updateUser({ email: '[email protected]' }, { password: 'someNewPassword' });
Requirements
- Node V.6^
- Express
- Cookie Parser (or something similar)
For derelict to work, you will need to use cookie-parser on your express server to handle cookies.
Derelict makes uses cookies to send and store the JWT and XSRF tokens.
npm install --save cookie-parser
app.use(cookieParser());