auth0 / angular-jwt

Library to help you work with JWTs on AngularJS
MIT License
0 stars 1 forks source link

how to increase getTokenExpirationDate from 1 hour to 24 hours #162

Closed constantinosergiou closed 7 years ago

constantinosergiou commented 7 years ago

i am trying to increase the getTokenExpirationDate but it does not change

var d = new Date(86400000); // The 0 here is the key, which sets the date to the epoch d.setUTCSeconds(decoded.exp);

fikoborquez commented 7 years ago

Why do you want to do that? Remember that expiration date is a reserved claims from token's payload.