From be31c0c5a867e5086f9db4aaaa9390e9cbb3da1e Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Tue, 2 Jan 2024 11:29:42 +0100 Subject: [PATCH] Update auth0-context.tsx (#708) ### Description Clarify the fact that you need to set `useRefreshTokensFallback` to true when using refreshtokens in order for the iframe to be used. ### Checklist - [ ] I have added documentation for new/changed functionality in this PR or in auth0.com/docs - [ ] All active GitHub checks for tests, formatting, and security are passing - [ ] The correct base branch is being used, if not the default branch Signed-off-by: Frederik Prijck --- src/auth0-context.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/auth0-context.tsx b/src/auth0-context.tsx index d22ceea7..d2960ab9 100644 --- a/src/auth0-context.tsx +++ b/src/auth0-context.tsx @@ -38,7 +38,9 @@ export interface Auth0ContextInterface * * If refresh tokens are used, the token endpoint is called directly with the * 'refresh_token' grant. If no refresh token is available to make this call, - * the SDK falls back to using an iframe to the '/authorize' URL. + * the SDK will only fall back to using an iframe to the '/authorize' URL if + * the `useRefreshTokensFallback` setting has been set to `true`. By default this + * setting is `false`. * * This method may use a web worker to perform the token call if the in-memory * cache is used.