b54dae7e15
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
29 lines
518 B
JavaScript
29 lines
518 B
JavaScript
import gql from 'graphql-tag';
|
|
|
|
export const CREATE_USER = gql`
|
|
mutation CreateUser($email: String!, $username: String!, $password: String!) {
|
|
createUser(email: $email, username: $username, password: $password) {
|
|
preferredUsername,
|
|
user {
|
|
email,
|
|
confirmationSentAt
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const VALIDATE_USER = gql`
|
|
mutation ValidateUser($token: String!) {
|
|
validateUser(token: $token) {
|
|
token,
|
|
user {
|
|
id,
|
|
},
|
|
actor {
|
|
avatarUrl,
|
|
preferredUsername,
|
|
}
|
|
}
|
|
}
|
|
`;
|