mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
- 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
23 lines
447 B
TypeScript
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
|
|
}
|
|
}
|
|
`
|