[keycloak-user] Possibility to get the keycloak session timeout value per Java-Script
Marek Posolda
mposolda at redhat.com
Mon Feb 2 17:14:00 EST 2015
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#javascript-adapter
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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150202/d13e94be/attachment-0001.html
More information about the keycloak-user
mailing list