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

react-oauth2-code-pkce

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-oauth2-code-pkce - npm Package Compare versions

Comparing version 1.13.0 to 1.13.1

13

dist/AuthContext.js

@@ -96,9 +96,14 @@ "use strict";

try {
if (response.id_token)
setIdTokenData((0, decodeJWT_1.decodeJWT)(response.id_token));
}
catch (e) {
console.warn(`Failed to decode idToken: ${e.message}`);
}
try {
if (config.decodeToken)
setTokenData((0, decodeJWT_1.decodeJWT)(response.access_token));
if (config.decodeToken && response.id_token)
setIdTokenData((0, decodeJWT_1.decodeJWT)(response.id_token));
}
catch (e) {
setError(e.message);
console.warn(`Failed to decode access token: ${e.message}`);
}

@@ -162,3 +167,3 @@ }

return () => clearInterval(interval);
}, [token]); // This token dependency removes the old, and registers a new Interval when a new token is fetched.
}, [token, refreshToken, refreshTokenExpire, tokenExpire]); // Replace the interval with a new when values used inside refreshAccessToken changes
// This ref is used to make sure the 'fetchTokens' call is only made once.

@@ -165,0 +170,0 @@ // Multiple calls with the same code will, and should, return an error from the API

{
"name": "react-oauth2-code-pkce",
"version": "1.13.0",
"version": "1.13.1",
"description": "Provider agnostic react package for OAuth2 Authorization Code flow with PKCE",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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