connect-redis-crypto
connect-redis-crypto copied to clipboard
Fix initial TTL on set
The initial TTL fetch for the set
method was getting the default TTL set in the options.
This is because a call to _getTTL
was made after encrypting the session object, which meant the checks on the cookie were now invalid.
Moving the call to TTL before the encryption
Hi @jas- ! Can you help review and push this in? Thanks!
@jas- bumping this as I believe this is a much needed change
Author must of went to go get some milk LMFAO
Hi @jas- we discovered this issue independently and found this open PR. Can you please address the request from @ajermaky . We would appreciate it.