@bity/oauth2-auth-code-pkce
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -332,3 +332,3 @@ /** | ||
var jsonPromise = res.json() | ||
.catch(function (jsonDecodeError) { return ({ error: 'invalid_json' }); }); | ||
.catch(function (_) { return ({ error: 'invalid_json' }); }); | ||
if (!res.ok) { | ||
@@ -335,0 +335,0 @@ return jsonPromise.then(function (_a) { |
@@ -162,3 +162,3 @@ /** | ||
*/ | ||
private isReturningFromAuthServer(): Promise<boolean> { | ||
public isReturningFromAuthServer(): Promise<boolean> { | ||
const error = OAuth2AuthCodePKCE.extractParamFromUrl(location.href, 'error'); | ||
@@ -227,3 +227,3 @@ if (error) { | ||
const jsonPromise = res.json() | ||
.catch(jsonDecodeError => ({ error: 'invalid_json' })); | ||
.catch(_ => ({ error: 'invalid_json' })); | ||
@@ -230,0 +230,0 @@ if (!res.ok) { |
@@ -427,3 +427,3 @@ module.exports = | ||
var jsonPromise = res.json() | ||
.catch(function (jsonDecodeError) { return ({ error: 'invalid_json' }); }); | ||
.catch(function (_) { return ({ error: 'invalid_json' }); }); | ||
if (!res.ok) { | ||
@@ -430,0 +430,0 @@ return jsonPromise.then(function (_a) { |
{ | ||
"name": "@bity/oauth2-auth-code-pkce", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "An OAuth 2.0 client that ONLY supports Authorization Code flow with PKCE support.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
113646