These are chat archives for brahalla/Cerberus

6th
Jan 2017
Pimeau
@Pimeau
Jan 06 2017 17:07
Hi @brahalla , first of all thanks for your great code. One question, is there some way to prevent the tokens from expiring? Thanks in advance.
Daniel Cottone
@brahalla
Jan 06 2017 21:04
hey @Pimeau, thanks. The token expiration is just a property that is set in the object stored in the JWT; you could simply ignore the token expiration date altogether in the code. For example I have done just that if you look at this class @ line 120: https://github.com/brahalla/Cerberus/blob/master/src/main/java/com/brahalla/Cerberus/security/TokenUtils.java
the expiration date is ignored if the token was generated for a tablet or phone
Pimeau
@Pimeau
Jan 06 2017 22:58
Ah, I see. Thanks!