ohmyform-ui/graphql/mutation/login.mutation.ts
2022-01-03 00:39:47 +01:00

23 lines
451 B
TypeScript

import { gql } from '@apollo/client/core'
export interface LoginMutationData {
tokens: {
access: string
refresh: string
}
}
export interface LoginMutationVariables {
username: string
password: string
}
export const LOGIN_MUTATION = gql`
mutation authLogin($username: String!, $password: String!) {
tokens: authLogin(username: $username, password: $password) {
access: accessToken
refresh: refreshToken
}
}
`