mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
Make minValidity parameter in updateToken() optional (#23050)
Closes #23149
This commit is contained in:
parent
1bacd2e23a
commit
911ff1af87
3
js/libs/keycloak-js/dist/keycloak.d.ts
vendored
3
js/libs/keycloak-js/dist/keycloak.d.ts
vendored
@ -578,6 +578,7 @@ declare class Keycloak {
|
||||
* If the token expires within `minValidity` seconds, the token is refreshed.
|
||||
* If the session status iframe is enabled, the session status is also
|
||||
* checked.
|
||||
* @param minValidity If not specified, `5` is used.
|
||||
* @returns A promise to set functions that can be invoked if the token is
|
||||
* still valid, or if the token is no longer valid.
|
||||
* @example
|
||||
@ -592,7 +593,7 @@ declare class Keycloak {
|
||||
* alert('Failed to refresh the token, or the session has expired');
|
||||
* });
|
||||
*/
|
||||
updateToken(minValidity: number): Promise<boolean>;
|
||||
updateToken(minValidity?: number): Promise<boolean>;
|
||||
|
||||
/**
|
||||
* Clears authentication state, including tokens. This can be useful if
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user