"exp" field was wrongly returned as string instead of Long
This commit is contained in:
parent
65e2882c2f
commit
a8f328cf56
|
@ -75,12 +75,12 @@ public class JWTToken implements Serializable {
|
|||
return payload;
|
||||
}
|
||||
|
||||
public String getExp() {
|
||||
return (String) getPayload().get("exp");
|
||||
public Long getExp() {
|
||||
return (Long) getPayload().get("exp");
|
||||
}
|
||||
|
||||
public Date getExpAsDate() {
|
||||
return new Date(Long.getLong(getExp()) * 1000);
|
||||
return new Date(getExp() * 1000);
|
||||
}
|
||||
|
||||
public Calendar getExpAsCalendar() {
|
||||
|
|
Loading…
Reference in New Issue