leeway vs exp_leeway option

40 views
Skip to first unread message

thepond...@gmail.com

unread,
Jan 21, 2020, 12:13:23 PM1/21/20
to ruby-jwt
According to the README, if I want to add leeway to the check against the expiration time of a token, I can call JWT.decode with the exp_leeway option: https://github.com/jwt/ruby-jwt#expiration-time-claim

However, I also noticed that there's an option just called leeway that appears in the code but isn't listed in the documentation: https://github.com/jwt/ruby-jwt/blob/master/lib/jwt/default_options.rb#L11

What is the difference between these two options? Should I prefer using one over the other?
Reply all
Reply to author
Forward
0 new messages