Skip to content

Commit 9f672fe

Browse files
committed
Improve docs
1 parent a97412a commit 9f672fe

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

EXAMPLES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,10 @@ After enabling DPoP, **every new session using a supported OAuth 2.0 flow in Aut
384384
>
385385
> You decide how to handle this transition. For example, you might require users to log in again the next time they use your application.
386386
387-
> [!IMPORTANT]
387+
> [!NOTE]
388388
> Using DPoP requires storing some temporary data in the user's browser. When you log the user out with `logout()`, this data is deleted.
389389
390-
> [!IMPORTANT]
390+
> [!TIP]
391391
> If all your clients are already using DPoP, you may want to increase security by making Auth0 reject any non-DPoP interactions. See [the docs on Sender Constraining](https://auth0.com/docs/secure/sender-constraining/configure-sender-constraining) for details.
392392
393393
### Using DPoP in your own requests

src/auth0-context.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export interface Auth0ContextInterface<TUser extends User = User>
158158
getDpopNonce: Auth0Client['getDpopNonce'];
159159

160160
/**
161-
* Gets the current DPoP nonce used for making requests to Auth0.
161+
* Sets the current DPoP nonce used for making requests to Auth0.
162162
*
163163
* It requires enabling the {@link Auth0ClientOptions.useDpop} option.
164164
*
@@ -177,6 +177,14 @@ export interface Auth0ContextInterface<TUser extends User = User>
177177
*/
178178
generateDpopProof: Auth0Client['generateDpopProof'];
179179

180+
/**
181+
* Returns a new `Fetcher` class that will contain a `fetchWithAuth()` method.
182+
* This is a drop-in replacement for the Fetch API's `fetch()` method, but will
183+
* handle certain authentication logic for you, like building the proper auth
184+
* headers or managing DPoP nonces and retries automatically.
185+
*
186+
* Check the `EXAMPLES.md` file for a deeper look into this method.
187+
*/
180188
createFetcher: Auth0Client['createFetcher'];
181189
}
182190

0 commit comments

Comments
 (0)