2024-12-23 19:55:58 +03:00

18 lines
427 B
TypeScript

import { createApolloClient } from '../apollo/client';
import { env as environment } from '../config/env';
import * as GQL from '../types';
export async function login() {
const { mutate } = createApolloClient();
const response = await mutate({
mutation: GQL.LoginDocument,
variables: {
identifier: environment.LOGIN_GRAPHQL,
password: environment.PASSWORD_GRAPHQL,
},
});
return response;
}