From 252abf87a1fa83f83d49b0b7a4acb67ea80fffeb Mon Sep 17 00:00:00 2001 From: Cathal Geoghegan Date: Mon, 13 Mar 2023 10:38:14 +0000 Subject: [PATCH] Document how to force refresh access token (#1720) --- securing_apps/topics/oidc/javascript-adapter.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/securing_apps/topics/oidc/javascript-adapter.adoc b/securing_apps/topics/oidc/javascript-adapter.adoc index b1ed218b74f..d154ccd68e6 100644 --- a/securing_apps/topics/oidc/javascript-adapter.adoc +++ b/securing_apps/topics/oidc/javascript-adapter.adoc @@ -556,7 +556,8 @@ Returns true if the token has less than minValidity seconds left before it expir *updateToken(minValidity)* If the token expires within minValidity seconds (minValidity is optional, if not specified 5 is used) the token is refreshed. -If the session status iframe is enabled, the session status is also checked. +If -1 is passed as the minValidity, the token will be forcibly refreshed. +If the session status iframe is enabled, the session status is also checked. Returns a promise that resolves with a boolean indicating whether or not the token has been refreshed.