Open a1anw2 opened 6 years ago
There is a bug with this. For some reason, it is looking for a float; well this is causing some problems with casting and long story short, it does not work correctly.
private NumericDate offsetFromNow(float offsetMinutes) { NumericDate numericDate = NumericDate.now(); float secondsOffset = offsetMinutes * 60; numericDate.addSeconds((long)secondsOffset); return numericDate; }
Needs to be rewritten
private NumericDate offsetFromNow(int offsetMinutes) { NumericDate nd = NumericDate.now(); return nd.addSeconds( 60*offsetMinutes ); }
As a work around you can manually call the method:
NumericDate nd = NumericDate.now(); nd.addSeconds( 60*60*24 ); claims.setExpirationTime( nd );
There is a bug with this. For some reason, it is looking for a float; well this is causing some problems with casting and long story short, it does not work correctly.
Needs to be rewritten
As a work around you can manually call the method: