Skip to content

Commit

Permalink
docs: document behaviour of customFetch on discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Oct 20, 2024
1 parent 71b62d1 commit 072da62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/interfaces/DiscoveryRequestOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ Support from the community to continue maintaining and improving this module is
`optional` **\[customFetch\]**: [`CustomFetch`](../type-aliases/CustomFetch.md)

Custom [Fetch API](https://developer.mozilla.org/docs/Web/API/Window/fetch) implementation to use for the HTTP Requests
the client will be making.
the client will be making. If this option is used, then the same timeout
value will be assigned to the resolved [Configuration](../classes/Configuration.md) instance for
use with all its future individual HTTP requests.

#### See

Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,9 @@ export function randomDPoPKeyPair(
export interface DiscoveryRequestOptions {
/**
* Custom {@link !fetch Fetch API} implementation to use for the HTTP Requests
* the client will be making.
* the client will be making. If this option is used, then the same timeout
* value will be assigned to the resolved {@link Configuration} instance for
* use with all its future individual HTTP requests.
*
* @see {@link customFetch}
*/
Expand Down

0 comments on commit 072da62

Please sign in to comment.