You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for raising this. Unfortunately, changing the existing expired property into a function would be a breaking change. We'll keep this in mind though; we might add a new function and deprecate the property.
Checklist
Describe the problem you'd like to have solved
Hi,
I noted that the Swift version of this library doesn't contain the
leeway
value as it's present on the auth0/JWTDecode.Android:https://github.com/auth0/JWTDecode.Android/blob/ec4b54496e684c5fb9e65f5ebb36e6241ef46161/lib/src/main/java/com/auth0/android/jwt/JWT.java#L161-L171
The issue in this source code can be found here:
JWTDecode.swift/JWTDecode/JWTDecode.swift
Line 54 in 75d29dc
Is that right? Shouldn't the libraries behave the same between the platforms?
Regards
Describe the ideal solution
Transform the value
expired
into a function that allow aleeway
time, example:Alternatives and current workarounds
While it's possible to modify the
expiredAt
, I don't believe it should be done as it's modifying the JWT content.Additional context
No response
The text was updated successfully, but these errors were encountered: