import { LOGIN_ST } from "./graphql" ; export const createGetIdentityData = ( mutation = LOGIN_ST ) => async ( { client } ) => { const response = await client . mutate ( { mutation } ) ; const { data , error } = response . data . security . login ; if ( error ) { throw new Error ( error . message ) ; } return data ; } ;