<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi, <br>
<br>
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:
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html/ch08.html#javascript-adapter">http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html/ch08.html#javascript-adapter</a><br>
<br>
Marek<br>
<br>
On 2.2.2015 13:09, Christoph Machnik wrote:<br>
</div>
<blockquote
cite="mid:9656B9D10BC6124A88D5E27DD02422855BC4783E@EX-TT-AC-01.traveltainment.int"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">Hi,<br>
<br>
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 ?<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>