@shoutem/fetch-token-intercept
Advanced tools
Comparing version 0.1.3 to 0.2.0
{ | ||
"name": "@shoutem/fetch-token-intercept", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Fetch interceptor for managing refresh token flow.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -46,5 +46,10 @@ # fetch-token-intercept | ||
shouldWaitForTokenRenewal: boolean, | ||
// Checks if response should be considered unauthorized (by default only 401 responses are | ||
// considered unauthorized). Override this method if you need to trigger token renewal for | ||
// other response statuses. | ||
isResponseUnauthorized: (response) => boolean, | ||
// (Required) Adds authorization for intercepted requests | ||
authorizeRequest: (request) => authorizedRequest, | ||
authorizeRequest: (request, accessToken) => authorizedRequest, | ||
@@ -51,0 +56,0 @@ // Number of retries after initial request was unauthorized |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
38468
124
4