@iad-os/react-ghost-auth
Advanced tools
Comparing version 0.1.17 to 0.1.18
@@ -754,9 +754,8 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime'; | ||
: () => axios | ||
.post(token_endpoint, queryString.stringify(Object.assign({ grant_type: 'authorization_code', client_id, | ||
redirect_uri, | ||
.post(token_endpoint, queryString.stringify(Object.assign({ grant_type: 'authorization_code', redirect_uri, | ||
code, | ||
code_verifier }, (client_secret && { client_secret }))), { | ||
headers: { | ||
'Content-Type': 'application/x-www-form-urlencoded', | ||
}, | ||
code_verifier }, (!client_secret && { client_id }))), { | ||
headers: Object.assign({ 'Content-Type': 'application/x-www-form-urlencoded' }, (client_secret && { | ||
Authorization: `Basic ${window.btoa(`${client_id}:${client_secret}`)}"`, | ||
})), | ||
}) | ||
@@ -791,3 +790,7 @@ .then(res => res.data); | ||
: () => axios | ||
.post(token_endpoint, queryString.stringify(Object.assign({ grant_type: 'refresh_token', client_id, refresh_token: getRefreshToken() }, (client_secret && { client_secret }))), { | ||
.post(token_endpoint, queryString.stringify({ | ||
grant_type: 'refresh_token', | ||
refresh_token: getRefreshToken(), | ||
client_id, | ||
}), { | ||
headers: { | ||
@@ -794,0 +797,0 @@ 'Content-Type': 'application/x-www-form-urlencoded', |
@@ -762,9 +762,8 @@ 'use strict'; | ||
: () => axios | ||
.post(token_endpoint, queryString.stringify(Object.assign({ grant_type: 'authorization_code', client_id, | ||
redirect_uri, | ||
.post(token_endpoint, queryString.stringify(Object.assign({ grant_type: 'authorization_code', redirect_uri, | ||
code, | ||
code_verifier }, (client_secret && { client_secret }))), { | ||
headers: { | ||
'Content-Type': 'application/x-www-form-urlencoded', | ||
}, | ||
code_verifier }, (!client_secret && { client_id }))), { | ||
headers: Object.assign({ 'Content-Type': 'application/x-www-form-urlencoded' }, (client_secret && { | ||
Authorization: `Basic ${window.btoa(`${client_id}:${client_secret}`)}"`, | ||
})), | ||
}) | ||
@@ -799,3 +798,7 @@ .then(res => res.data); | ||
: () => axios | ||
.post(token_endpoint, queryString.stringify(Object.assign({ grant_type: 'refresh_token', client_id, refresh_token: getRefreshToken() }, (client_secret && { client_secret }))), { | ||
.post(token_endpoint, queryString.stringify({ | ||
grant_type: 'refresh_token', | ||
refresh_token: getRefreshToken(), | ||
client_id, | ||
}), { | ||
headers: { | ||
@@ -802,0 +805,0 @@ 'Content-Type': 'application/x-www-form-urlencoded', |
{ | ||
"name": "@iad-os/react-ghost-auth", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"maintainers": [ | ||
@@ -5,0 +5,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
154971
1683