Non-expiring grant/token #1263
AndreYurin
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
First of all, thank you for your work, helps a lot and works great!
I want to ask about the ttl settings: I see in the library types, in the examples, that setting “Grant” ttl to “undefined” is allowed and it should be considered as “exp will be missing when expiration is not configured on the Grant model”. I also see that checkTTL function allows undefined value:
But if I try to set it to “undefined”, it doesn't work - the ttl will have a function. This is because during configuration creation, here, there is an
else if
check that doesn't allow undefined values:If I remove
esle if (typeof value !== 'undefined')
and instead set it to justelse
, allowing undefined values, everything works fine.So I was wondering: should we or shouldn't we have the ability to set ttl to undefined value and the logic to handle that? I would like to keep the Grant from expiring.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions