Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion js/libs/keycloak-js/dist/keycloak.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down