Currently conversion PoPTokenValidityDuration is not acting as expected.
When passing a duration such as 15m current code was multiplying 15m (900000000000) with time.Minute (60000000000) with was causing very high expiration date non expected.
This fix assumes options are set using a proper time.Duration and respect it down to the pop token verification with any conversion in between.
Currently conversion
PoPTokenValidityDuration
is not acting as expected.When passing a duration such as
15m
current code was multiplying15m
(900000000000) withtime.Minute
(60000000000) with was causing very high expiration date non expected.This fix assumes options are set using a proper time.Duration and respect it down to the pop token verification with any conversion in between.