mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 01:35:51 +00:00
23 lines
440 B
TypeScript
23 lines
440 B
TypeScript
import { gql } from 'apollo-boost'
|
|
|
|
export interface LoginMutationData {
|
|
tokens: {
|
|
access: string
|
|
refresh: string
|
|
}
|
|
}
|
|
|
|
export interface LoginMutationVariables {
|
|
username: string
|
|
password: string
|
|
}
|
|
|
|
export const LOGIN_MUTATION = gql`
|
|
mutation login($username: String!, $password: String!) {
|
|
tokens: authLogin(username: $username, password: $password) {
|
|
access: accessToken
|
|
refresh: refreshToken
|
|
}
|
|
}
|
|
`
|