@thirdweb-dev/service-utils 0.1.0 → 0.1.1-nightly-d724ad85-20230714003417
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -108,7 +108,7 @@ async function authorize(options) {
|
|
108
108
|
|
109
109
|
// no cached key, re-fetch from API
|
110
110
|
if (!keyData) {
|
111
|
-
const response = await fetch(`${apiUrl}/v1/keys/use
|
111
|
+
const response = await fetch(`${apiUrl}/v1/keys/use?scope=${scope}&clientId=${clientId}`, {
|
112
112
|
method: "GET",
|
113
113
|
headers: {
|
114
114
|
"x-service-api-key": serviceKey,
|
@@ -108,7 +108,7 @@ async function authorize(options) {
|
|
108
108
|
|
109
109
|
// no cached key, re-fetch from API
|
110
110
|
if (!keyData) {
|
111
|
-
const response = await fetch(`${apiUrl}/v1/keys/use
|
111
|
+
const response = await fetch(`${apiUrl}/v1/keys/use?scope=${scope}&clientId=${clientId}`, {
|
112
112
|
method: "GET",
|
113
113
|
headers: {
|
114
114
|
"x-service-api-key": serviceKey,
|
@@ -104,7 +104,7 @@ async function authorize(options) {
|
|
104
104
|
|
105
105
|
// no cached key, re-fetch from API
|
106
106
|
if (!keyData) {
|
107
|
-
const response = await fetch(`${apiUrl}/v1/keys/use
|
107
|
+
const response = await fetch(`${apiUrl}/v1/keys/use?scope=${scope}&clientId=${clientId}`, {
|
108
108
|
method: "GET",
|
109
109
|
headers: {
|
110
110
|
"x-service-api-key": serviceKey,
|
package/package.json
CHANGED