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

iqa-keycloak-oauth2

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iqa-keycloak-oauth2 - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

22

dist/AuthContext.js

@@ -74,5 +74,8 @@ "use strict";

}
function forceRefreshToken(initial = false) {
function forceRefreshToken(configParams) {
if (refreshToken) {
setRefreshInProgress(true);
let refreshConfig = config;
refreshConfig.extraTokenParameters = configParams;
refreshConfig.extraAuthParameters = configParams;
(0, authentication_1.fetchWithRefreshToken)({ config, refreshToken })

@@ -84,10 +87,15 @@ .then((result) => handleTokenResponse(result))

if (error.status === 400) {
return handleExpiredRefreshToken(initial);
return handleExpiredRefreshToken(false);
}
// Unknown error. Set error, and login if first page load
else {
console.error(error);
setError(error.message);
if (initial)
login();
if (error.status === 403) {
setError('access denied');
}
else {
console.error(error);
setError(error.message);
if (false)
login();
}
}

@@ -99,3 +107,3 @@ }

setError(error.message);
if (initial)
if (false)
login();

@@ -102,0 +110,0 @@ }

{
"name": "iqa-keycloak-oauth2",
"version": "1.0.3",
"version": "1.0.4",
"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