ohmyform-ui/graphql/mutation/login.mutation.ts
Michael Schramm 8713c0a8c6 - ability to change user passwords
- add default page background
- add environment list in [doc](doc/environment.md)
- combined notificationts to become more versatile
- use exported hooks for graphql
- links at the bottom for new users
- fixes for hide contrib setting
- upgrad all packages
2021-05-02 12:43:55 +02:00

23 lines
447 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 login($username: String!, $password: String!) {
tokens: authLogin(username: $username, password: $password) {
access: accessToken
refresh: refreshToken
}
}
`