react-oauth2-pkce
Advanced tools
Comparing version
@@ -277,3 +277,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
clientId: clientId, | ||
scopes: scopes.join(' '), | ||
scope: scopes.join(' '), | ||
responseType: 'code', | ||
@@ -341,2 +341,6 @@ redirectUri: redirectUri, | ||
return Promise.resolve(response.json()).then(function (json) { | ||
if (isRefresh && !json.refresh_token) { | ||
json.refresh_token = payload.refresh_token; | ||
} | ||
_this7.setAuthTokens(json); | ||
@@ -343,0 +347,0 @@ |
@@ -274,3 +274,3 @@ import React, { useContext } from 'react'; | ||
clientId: clientId, | ||
scopes: scopes.join(' '), | ||
scope: scopes.join(' '), | ||
responseType: 'code', | ||
@@ -338,2 +338,6 @@ redirectUri: redirectUri, | ||
return Promise.resolve(response.json()).then(function (json) { | ||
if (isRefresh && !json.refresh_token) { | ||
json.refresh_token = payload.refresh_token; | ||
} | ||
_this7.setAuthTokens(json); | ||
@@ -340,0 +344,0 @@ |
{ | ||
"name": "react-oauth2-pkce", | ||
"version": "2.0.1", | ||
"version": "2.0.4", | ||
"description": "Authenticate against generic OAuth2 using PKCE", | ||
@@ -51,2 +51,3 @@ "author": "Gardner Bickford <gardner@bickford.nz>", | ||
"babel-eslint": "^10.0.3", | ||
"color-string": ">=1.5.5", | ||
"cross-env": "^7.0.2", | ||
@@ -65,6 +66,10 @@ "enzyme": "^3.11.0", | ||
"gh-pages": "^2.2.0", | ||
"immer": ">=8.0.1", | ||
"is-svg": ">=4.2.2", | ||
"microbundle-crl": "^0.13.10", | ||
"node-notifier": ">=8.0.1", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.0.4", | ||
"react": "^16.13.1", | ||
"react-dev-utils": ">=11.0.4", | ||
"react-dom": "^16.13.1", | ||
@@ -71,0 +76,0 @@ "react-scripts": "^3.4.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
71950
-3.24%37
15.63%15
-50%801
-10%