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

@jfront/oauth-context

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jfront/oauth-context - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [0.1.9](https://github.com/Jepria/jfront-oauth/compare/@jfront/oauth-context@0.1.8...@jfront/oauth-context@0.1.9) (2020-10-12)
### Bug Fixes
* error handling ([57ee37c](https://github.com/Jepria/jfront-oauth/commit/57ee37ca1daf736b235e08f8a8146b6cd13ae483))
## [0.1.8](https://github.com/Jepria/jfront-oauth/compare/@jfront/oauth-context@0.1.7...@jfront/oauth-context@0.1.8) (2020-10-12)

@@ -8,0 +19,0 @@

6

dist/cjs/OAuthContextProvider.js

@@ -51,2 +51,3 @@ "use strict";

errorCode = _useReducer$.errorCode,
errorId = _useReducer$.errorId,
dispatch = _useReducer[1];

@@ -94,3 +95,3 @@

})["catch"](function (error) {
dispatch((0, _oauthCore.tokenRequestFailure)(error.error, error.errorDescription));
dispatch((0, _oauthCore.tokenRequestFailure)(error.error, error.errorUri, error.errorDescription, error.errorId));
});

@@ -105,3 +106,3 @@ } // eslint-disable-next-line react-hooks/exhaustive-deps

if (queryParams.error) {
dispatch((0, _oauthCore.authorizationRequestFailure)(queryParams.error, queryParams.errorDescription ? queryParams.errorDescription : undefined));
dispatch((0, _oauthCore.authorizationRequestFailure)(queryParams.error, queryParams.errorDescription ? queryParams.errorDescription : undefined, queryParams.errorId ? queryParams.errorId : undefined));
return;

@@ -172,2 +173,3 @@ }

errorCode: errorCode,
errorId: errorId,
logout: logout

@@ -174,0 +176,0 @@ }

@@ -37,3 +37,4 @@ import React, { useReducer, useEffect } from "react";

errorDescription,
errorCode
errorCode,
errorId
}, dispatch] = useReducer(OAuthReducer, {

@@ -82,3 +83,3 @@ isLoading: true

}).catch(error => {
dispatch(tokenRequestFailure(error.error, error.errorDescription));
dispatch(tokenRequestFailure(error.error, error.errorUri, error.errorDescription, error.errorId));
});

@@ -93,3 +94,3 @@ } // eslint-disable-next-line react-hooks/exhaustive-deps

if (queryParams.error) {
dispatch(authorizationRequestFailure(queryParams.error, queryParams.errorDescription ? queryParams.errorDescription : undefined));
dispatch(authorizationRequestFailure(queryParams.error, queryParams.errorDescription ? queryParams.errorDescription : undefined, queryParams.errorId ? queryParams.errorId : undefined));
return;

@@ -160,2 +161,3 @@ }

errorCode,
errorId,
logout

@@ -162,0 +164,0 @@ }

@@ -13,2 +13,3 @@ import React from "react";

errorCode?: string;
errorId?: string;
}

@@ -15,0 +16,0 @@ /**

@@ -9,2 +9,3 @@ import React from "react";

errorDescription: string | null;
errorId: string | null;
}

@@ -11,0 +12,0 @@ export interface OAuthContextProps {

{
"name": "@jfront/oauth-context",
"version": "0.1.8",
"version": "0.1.9",
"license": "Apache-2.0",

@@ -11,3 +11,3 @@ "repository": "https://github.com/Jepria/jfront-oauth",

"dependencies": {
"@jfront/oauth-core": "^0.1.1"
"@jfront/oauth-core": "^0.1.2"
},

@@ -41,3 +41,3 @@ "devDependencies": {

},
"gitHead": "d303cf11e621cad2da53a0d890096f9523e58955"
"gitHead": "f674a19d2e3f76df6b2d12355170e4c89b729d43"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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