chore: Rename createAuthLink as createAuthData

This commit is contained in:
Faruk AYDIN
2021-10-26 21:52:04 +02:00
committed by Ali BARIN
parent 901699fe64
commit cbfba465db
15 changed files with 43 additions and 43 deletions

View File

@@ -22,7 +22,7 @@ export default class Discord {
return this.appData.fields.find((field: Field) => field.key == 'oAuthRedirectUrl').value;
}
async createAuthLink() {
async createAuthData() {
const searchParams = new URLSearchParams({
client_id: this.connectionData.consumerKey,
redirect_uri: this.oauthRedirectUrl,

View File

@@ -71,7 +71,7 @@
{
"step": 2,
"type": "mutation",
"name": "createAuthLink",
"name": "createAuthData",
"fields": [
{
"name": "id",
@@ -86,7 +86,7 @@
"fields": [
{
"name": "url",
"value": "{createAuthLink.url}"
"value": "{createAuthData.url}"
}
]
},
@@ -163,7 +163,7 @@
{
"step": 3,
"type": "mutation",
"name": "createAuthLink",
"name": "createAuthData",
"fields": [
{
"name": "id",
@@ -178,7 +178,7 @@
"fields": [
{
"name": "url",
"value": "{createAuthLink.url}"
"value": "{createAuthData.url}"
}
]
},

View File

@@ -31,7 +31,7 @@ export default class Firebase {
return this.appData.fields.find((field: Field) => field.key == 'oAuthRedirectUrl').value;
}
async createAuthLink() {
async createAuthData() {
const url = this.oauthClient.generateAuthUrl({
access_type: 'offline',
scope: this.scopes

View File

@@ -71,7 +71,7 @@
{
"step": 2,
"type": "mutation",
"name": "createAuthLink",
"name": "createAuthData",
"fields": [
{
"name": "id",
@@ -86,7 +86,7 @@
"fields": [
{
"name": "url",
"value": "{createAuthLink.url}"
"value": "{createAuthData.url}"
}
]
},
@@ -163,7 +163,7 @@
{
"step": 3,
"type": "mutation",
"name": "createAuthLink",
"name": "createAuthData",
"fields": [
{
"name": "id",
@@ -178,7 +178,7 @@
"fields": [
{
"name": "url",
"value": "{createAuthLink.url}"
"value": "{createAuthData.url}"
}
]
},

View File

@@ -26,7 +26,7 @@ export default class Flickr {
this.appData = App.findOneByKey('flickr');
}
async createAuthLink() {
async createAuthData() {
const appFields = this.appData.fields.find((field: Field) => field.key == 'oAuthRedirectUrl')
const callbackUrl = appFields.value;

View File

@@ -71,7 +71,7 @@
{
"step": 2,
"type": "mutation",
"name": "createAuthLink",
"name": "createAuthData",
"fields": [
{
"name": "id",
@@ -86,7 +86,7 @@
"fields": [
{
"name": "url",
"value": "{createAuthLink.url}"
"value": "{createAuthData.url}"
}
]
},
@@ -163,7 +163,7 @@
{
"step": 3,
"type": "mutation",
"name": "createAuthLink",
"name": "createAuthData",
"fields": [
{
"name": "id",
@@ -178,7 +178,7 @@
"fields": [
{
"name": "url",
"value": "{createAuthLink.url}"
"value": "{createAuthData.url}"
}
]
},

View File

@@ -36,7 +36,7 @@ export default class Twitch {
return this.appData.fields.find((field: Field) => field.key == 'oAuthRedirectUrl').value;
}
async createAuthLink() {
async createAuthData() {
const { url } = await fetchUtil('https://id.twitch.tv/oauth2/authorize', {
search: {
client_id: this.connectionData.consumerKey,

View File

@@ -71,7 +71,7 @@
{
"step": 2,
"type": "mutation",
"name": "createAuthLink",
"name": "createAuthData",
"fields": [
{
"name": "id",
@@ -86,7 +86,7 @@
"fields": [
{
"name": "url",
"value": "{createAuthLink.url}"
"value": "{createAuthData.url}"
}
]
},
@@ -163,7 +163,7 @@
{
"step": 3,
"type": "mutation",
"name": "createAuthLink",
"name": "createAuthData",
"fields": [
{
"name": "id",
@@ -178,7 +178,7 @@
"fields": [
{
"name": "url",
"value": "{createAuthLink.url}"
"value": "{createAuthData.url}"
}
]
},

View File

@@ -19,7 +19,7 @@ export default class Twitter {
this.appData = App.findOneByKey('twitter');
}
async createAuthLink() {
async createAuthData() {
const appFields = this.appData.fields.find((field: Field) => field.key == 'oAuthRedirectUrl')
const callbackUrl = appFields.value;

View File

@@ -71,7 +71,7 @@
{
"step": 2,
"type": "mutation",
"name": "createAuthLink",
"name": "createAuthData",
"fields": [
{
"name": "id",
@@ -86,7 +86,7 @@
"fields": [
{
"name": "url",
"value": "{createAuthLink.url}"
"value": "{createAuthData.url}"
}
]
},
@@ -163,7 +163,7 @@
{
"step": 3,
"type": "mutation",
"name": "createAuthLink",
"name": "createAuthData",
"fields": [
{
"name": "id",
@@ -178,7 +178,7 @@
"fields": [
{
"name": "url",
"value": "{createAuthLink.url}"
"value": "{createAuthData.url}"
}
]
},