Skip to content

Commit d8f1796

Browse files
committed
updates
1 parent 292be3c commit d8f1796

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

components/alchemy/alchemy.app.mjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ export default {
55
type: "app",
66
app: "alchemy",
77
propDefinitions: {
8-
authToken: {
9-
type: "string",
10-
label: "Auth Token",
11-
description: "Find your [Alchemy auth token](https://docs.alchemy.com/reference/notify-api-faq#where-do-i-find-my-alchemy-auth-token) in the upper-right corner of your Webhooks dashboard by clicking the **AUTH TOKEN** button.",
12-
},
138
network: {
149
type: "string",
1510
label: "Network",
@@ -35,13 +30,12 @@ export default {
3530
_makeRequest({
3631
$ = this,
3732
path,
38-
authToken,
3933
...opts
4034
}) {
4135
return axios($, {
4236
url: `${this._baseUrl()}${path}`,
4337
headers: {
44-
"X-Alchemy-Token": authToken,
38+
"X-Alchemy-Token": this.$auth.auth_token,
4539
},
4640
...opts,
4741
});

components/alchemy/sources/new-graphql-query-instant/new-graphql-query-instant.mjs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ export default {
1414
type: "$.interface.http",
1515
customResponse: true,
1616
},
17-
authToken: {
18-
propDefinition: [
19-
alchemy,
20-
"authToken",
21-
],
22-
},
2317
network: {
2418
propDefinition: [
2519
alchemy,
@@ -36,7 +30,6 @@ export default {
3630
hooks: {
3731
async activate() {
3832
const { data: { id } } = await this.alchemy.createWebhook({
39-
authToken: this.authToken,
4033
data: {
4134
network: this.network,
4235
webhook_type: "GRAPHQL",
@@ -50,7 +43,6 @@ export default {
5043
const hookId = this._getHookId();
5144
if (hookId) {
5245
await this.alchemy.deleteWebhook({
53-
authToken: this.authToken,
5446
params: {
5547
webhook_id: hookId,
5648
},

0 commit comments

Comments
 (0)