mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
894 B
41 lines
894 B
7 years ago
|
import gql from 'graphql-tag'
|
||
|
|
||
|
export default {
|
||
|
GQL_QUERY_AUTHENTICATION: gql`
|
||
|
query($mode: String!) {
|
||
|
authentication(mode:$mode) {
|
||
|
key
|
||
|
useForm
|
||
|
title
|
||
|
icon
|
||
|
}
|
||
|
}
|
||
|
`,
|
||
|
GQL_QUERY_TRANSLATIONS: gql`
|
||
|
query($locale: String!, $namespace: String!) {
|
||
|
translations(locale:$locale, namespace:$namespace) {
|
||
|
key
|
||
|
value
|
||
|
}
|
||
|
}
|
||
7 years ago
|
`,
|
||
|
GQL_MUTATION_LOGIN: gql`
|
||
|
mutation($username: String!, $password: String!, $provider: String!) {
|
||
|
login(username: $username, password: $password, provider: $provider) {
|
||
|
succeeded
|
||
|
message
|
||
|
tfaRequired
|
||
|
tfaLoginToken
|
||
|
}
|
||
|
}
|
||
|
`,
|
||
|
GQL_MUTATION_LOGINTFA: gql`
|
||
|
mutation($loginToken: String!, $securityCode: String!) {
|
||
|
loginTFA(loginToken: $loginToken, securityCode: $securityCode) {
|
||
|
succeeded
|
||
|
message
|
||
|
}
|
||
|
}
|
||
7 years ago
|
`
|
||
|
}
|