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
I get the error missing field exp at line 1 column 160 with the following struct using a generic parameter T in my JWT claims. The error is raised when calling verify_with_key
However, I get no such error when I leave out the generic T, and instead just use the exact same struct: in both cases User is the type of the payload.
Hi, I am very very new to Rust and am using this library. I am doing something similar but can't say I see any issue. I tried adapting your snippet above and reproduce what you are reporting but it seems to be working as expected. Please have a look:
I get the error
missing field exp at line 1 column 160
with the following struct using a generic parameterT
in my JWT claims. The error is raised when callingverify_with_key
This is the type of my claims:
However, I get no such error when I leave out the generic
T
, and instead just use the exact same struct: in both casesUser
is the type of the payload.Am I missing something or is this a bug? Any help is appreciated.
The text was updated successfully, but these errors were encountered: