Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shoutem/fetch-token-intercept

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shoutem/fetch-token-intercept - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc