Skip to content

Commit

Permalink
refactor: #4 reduce usage of any type
Browse files Browse the repository at this point in the history
  • Loading branch information
pamapa committed Aug 19, 2021
1 parent 71708fe commit 2256602
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/UserManagerSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ export interface UserManagerSettings extends OidcClientSettings {
popupWindowFeatures?: string;
/** The target parameter to window.open for the popup signin window (default: '_blank') */
popupWindowTarget?: any;

/** The URL for the page containing the code handling the silent renew */
silent_redirect_uri?: any;
silent_redirect_uri?: string;
/** Number of milliseconds to wait for the silent renew to return before assuming it has failed or timed out (default: 10000) */
silentRequestTimeout?: any;
silentRequestTimeout?: number;
/** Flag to indicate if there should be an automatic attempt to renew the access token prior to its expiration (default: false) */
automaticSilentRenew?: boolean;
validateSubOnSilentRenew?: boolean;
/** Flag to control if id_token is included as id_token_hint in silent renew calls (default: true) */
includeIdTokenInSilentRenew?: boolean;

/** Will raise events for when user has performed a signout at the OP (default: true) */
monitorSession?: boolean;
monitorAnonymousSession?: boolean;
Expand All @@ -39,9 +41,11 @@ export interface UserManagerSettings extends OidcClientSettings {
revokeAccessTokenOnSignout?: boolean;
/** The number of seconds before an access token is to expire to raise the accessTokenExpiring event (default: 60) */
accessTokenExpiringNotificationTime?: number;

redirectNavigator?: any;
popupNavigator?: any;
iframeNavigator?: any;

/** Storage object used to persist User for currently authenticated user (default: session storage) */
userStore?: WebStorageStateStore;
}
Expand All @@ -52,8 +56,8 @@ export class UserManagerSettingsStore extends OidcClientSettingsStore {
public readonly popupWindowFeatures?: string;
public readonly popupWindowTarget?: any;

public readonly silent_redirect_uri?: any;
public readonly silentRequestTimeout?: any;
public readonly silent_redirect_uri?: string;
public readonly silentRequestTimeout?: number;
public readonly automaticSilentRenew: boolean;
public readonly validateSubOnSilentRenew: boolean;
public readonly includeIdTokenInSilentRenew: boolean;
Expand Down

0 comments on commit 2256602

Please sign in to comment.