docs: update RemoteJWKSetOptions durations with the unit

closes #347
This commit is contained in:
Filip Skokan 2022-01-22 11:01:12 +01:00
parent 9492822667
commit 7cb8af45eb
2 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ ___
`Optional` **cooldownDuration**: `number` `Optional` **cooldownDuration**: `number`
Duration for which no more HTTP requests will be triggered Duration (in milliseconds) for which no more HTTP requests will be triggered
after a previous successful fetch. Default is 30000. after a previous successful fetch. Default is 30000.
___ ___
@ -39,5 +39,5 @@ ___
`Optional` **timeoutDuration**: `number` `Optional` **timeoutDuration**: `number`
Timeout for the HTTP request. When reached the request will be Timeout (in milliseconds) for the HTTP request. When reached the request will be
aborted and the verification will fail. Default is 5000. aborted and the verification will fail. Default is 5000.

View file

@ -39,13 +39,13 @@ interface Cache {
*/ */
export interface RemoteJWKSetOptions { export interface RemoteJWKSetOptions {
/** /**
* Timeout for the HTTP request. When reached the request will be * Timeout (in milliseconds) for the HTTP request. When reached the request will be
* aborted and the verification will fail. Default is 5000. * aborted and the verification will fail. Default is 5000.
*/ */
timeoutDuration?: number timeoutDuration?: number
/** /**
* Duration for which no more HTTP requests will be triggered * Duration (in milliseconds) for which no more HTTP requests will be triggered
* after a previous successful fetch. Default is 30000. * after a previous successful fetch. Default is 30000.
*/ */
cooldownDuration?: number cooldownDuration?: number