feat: Introduce auth step to verify connection

This commit is contained in:
Ali BARIN
2021-10-15 18:15:46 +02:00
parent 46f68037ec
commit 9cc10f6346
5 changed files with 96 additions and 67 deletions

View File

@@ -1,5 +1,6 @@
import { CREATE_CREDENTIAL } from './create-credentials';
import { CREATE_AUTH_LINK } from './create-auth-link';
import { UPDATE_CREDENTIAL } from './update-credential';
type Mutations = {
[key: string]: any,
@@ -7,6 +8,7 @@ type Mutations = {
const mutations: Mutations = {
createCredential: CREATE_CREDENTIAL,
updateCredential: UPDATE_CREDENTIAL,
createAuthLink: CREATE_AUTH_LINK,
};

View File

@@ -0,0 +1,15 @@
import { gql } from '@apollo/client';
export const UPDATE_CREDENTIAL = gql`
mutation UpdateCredential($id: String!, $data: twitterCredentialInput!) {
updateCredential(id: $id, data: $data) {
id
key
verified
data {
consumerKey
consumerSecret
}
}
}
`;