2018-11-06 09:30:27 +00:00
|
|
|
import gql from 'graphql-tag';
|
|
|
|
|
|
|
|
export const LOGIN = gql`
|
|
|
|
mutation Login($email: String!, $password: String!) {
|
|
|
|
login(email: $email, password: $password) {
|
|
|
|
token,
|
|
|
|
user {
|
|
|
|
id,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
2019-01-11 12:58:29 +00:00
|
|
|
|
|
|
|
export const SEND_RESET_PASSWORD = gql`
|
|
|
|
mutation SendResetPassword($email: String!) {
|
|
|
|
sendResetPassword(email: $email)
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const RESET_PASSWORD = gql`
|
|
|
|
mutation ResetPassword($token: String!, $password: String!) {
|
|
|
|
resetPassword(token: $token, password: $password) {
|
|
|
|
token,
|
|
|
|
user {
|
|
|
|
id,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|
2019-01-11 13:07:14 +00:00
|
|
|
|
|
|
|
export const RESEND_CONFIRMATION_EMAIL = gql`
|
|
|
|
mutation ResendConfirmationEmail($email: String!) {
|
|
|
|
resendConfirmationEmail(email: $email)
|
|
|
|
}
|
|
|
|
`;
|