- Include a TypeScript definition file
- deps: [email protected]
- Use
crypto.timingSafeEqual
when available
- Use
- deps: [email protected]
- perf: remove only trailing
=
- perf: remove only trailing
- Remove
base64-url
dependency
- deps: [email protected]
- Remove
base64-url
dependency
- Remove
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- Use
tsscmp
module for timing-safe token verification - deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- Use
random-bytes
for byte source
- Use
- Remove
tokenize
export - Remove
tokenize
option - Return a prototype-based object rather than functions
- This means the resulting functions need to be called as methods
- Throw when missing secret to
tokens.create()
- deps: uid-safe@~2.0.0
- Use global
Promise
when returning a promise
- Use global
- Fix compatibility with
crypto.DEFAULT_ENCODING
global changes
- deps: [email protected]
- deps: uid-safe@~1.1.0
- Use
crypto.randomBytes
, if available - deps: [email protected]
- Use
- deps: [email protected]
- deps: uid-safe@~1.0.3
- Fix error branch that would throw
- deps: [email protected]
- deps: uid-safe@~1.0.2
- Remove dependency on
mz
- Remove dependency on
- Slight speed improvement for
verify
- deps: [email protected]
- deps: rndm@~1.1.0
- deps: [email protected]
- Rename module to
csrf
- Use
uid-safe
module - Use
base64-url
module - Remove sync
.secret()
-- use.secretSync()
instead
- Make sure CSRF tokens are URL safe