mirror of https://github.com/sylv/micro.git
41 lines
582 B
GraphQL
41 lines
582 B
GraphQL
query GetUser {
|
|
user {
|
|
...RegularUser
|
|
otpEnabled
|
|
}
|
|
}
|
|
|
|
fragment RegularUser on User {
|
|
id
|
|
username
|
|
email
|
|
verifiedEmail
|
|
token
|
|
}
|
|
|
|
mutation Login($username: String!, $password: String!, $otp: String) {
|
|
login(username: $username, password: $password, otpCode: $otp) {
|
|
...RegularUser
|
|
}
|
|
}
|
|
|
|
mutation Logout {
|
|
logout
|
|
}
|
|
|
|
mutation GenerateOTP {
|
|
generateOTP {
|
|
recoveryCodes
|
|
qrauthUrl
|
|
secret
|
|
}
|
|
}
|
|
|
|
mutation ConfirmOTP($otpCode: String!) {
|
|
confirmOTP(otpCode: $otpCode)
|
|
}
|
|
|
|
mutation DisableOTP($otpCode: String!) {
|
|
disableOTP(otpCode: $otpCode)
|
|
}
|