feat: Introduce auth step to verify connection
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
15
packages/web/src/graphql/mutations/update-credential.ts
Normal file
15
packages/web/src/graphql/mutations/update-credential.ts
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user