You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Auth0 blog - Refresh Tokens: When to Use Them and How They Interact with JWTs](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/)
9
+
-[Shoutem blog - Keeping your tokens fresh](https://medium.com/shoutem/keeping-your-api-tokens-fresh-72059a7b0586)
9
10
10
11
>Note:
11
12
This library expects that fetch and promise api's are available at target environment. You should
@@ -43,6 +44,11 @@ config: {
43
44
// When set, response which invalidates token will be resolved after the token has been renewed
44
45
// in effect, token will be loaded in sync with response, otherwise renew will run async to response
45
46
shouldWaitForTokenRenewal: boolean,
47
+
48
+
// Checks if response should be considered unauthorized (by default only 401 responses are
49
+
// considered unauthorized). Override this method if you need to trigger token renewal for
50
+
// other response statuses. Check API reference for helper method which defines default behaviour
51
+
isResponseUnauthorized: (response) => boolean,
46
52
47
53
// (Required) Adds authorization for intercepted requests
0 commit comments