File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,15 @@ export interface OidcClientSettings {
156
156
readonly staleStateAge ?: number ;
157
157
/** The window of time (in seconds) to allow the current time to deviate when validating id_token's iat, nbf, and exp values (default: 300) */
158
158
readonly clockSkew ?: number ;
159
+ readonly clockService ?: ClockService ;
159
160
readonly stateStore ?: StateStore ;
160
161
readonly userInfoJwtIssuer ?: 'ANY' | 'OP' | string ;
161
162
ResponseValidatorCtor ?: ResponseValidatorCtor ;
162
163
MetadataServiceCtor ?: MetadataServiceCtor ;
163
164
/** An object containing additional query string parameters to be including in the authorization request */
164
165
extraQueryParams ?: Record < string , any > ;
166
+
167
+ getEpochTime ( ) : Promise < number > ;
165
168
}
166
169
167
170
export class UserManager extends OidcClient {
@@ -300,6 +303,10 @@ export interface UserManagerSettings extends OidcClientSettings {
300
303
readonly userStore ?: WebStorageStateStore ;
301
304
}
302
305
306
+ export interface ClockService {
307
+ getEpochTime ( ) : Promise < number > ;
308
+ }
309
+
303
310
export interface WebStorageStateStoreSettings {
304
311
prefix ?: string ;
305
312
store ?: any ;
You can’t perform that action at this time.
0 commit comments