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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user