Hi,
thanks for the answer, but i want to know the value of the sessioin timeout (red) and the
"isTokenExpired(X)" is for the accessToken value (blue).
[X]
Is there a possibility to get this value (red) in Java Script ?
________________________________
Von: Marek Posolda [mposolda(a)redhat.com]
Gesendet: Montag, 2. Februar 2015 23:14
Bis: Christoph Machnik; keycloak-user(a)lists.jboss.org
Betreff: Re: [keycloak-user] Possibility to get the keycloak session timeout value per
Java-Script
Hi,
on keycloak.js there is function "isTokenExpired()" which can be used to check
if token is expired. You can also give it an argument like "isTokenExpired(10)",
which will return true if token is expired *or* is going to expire in next 10 seconds.
Some more info in the docs:
http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html/ch08.html#...
Marek
On 2.2.2015 13:09, Christoph Machnik wrote:
Hi,
I want to show an info, befoe the session runs in a timeout, so that the user can react
and not be logged out. For this i need to read the session timeout that is configuresd in
the keycloak admin console. is there a possibility to get the timeout value in javascript
?
_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org<mailto:keycloak-user@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-user