Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upseal() options is not guarded against mutation #70
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to change the
ttl
on each invocation, you can't re-use the same object since the value is not extracted from the options object until after anawait
.Example:
The resulting object will be sealed with a
ttl == 4200
.I suspect there are similar issues with
unseal()
as well.