Skip to content

Instantly share code, notes, and snippets.

@a9kit
Created January 27, 2019 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a9kit/86d155522dc1a3faffeff058ae0e3dbf to your computer and use it in GitHub Desktop.
Save a9kit/86d155522dc1a3faffeff058ae0e3dbf to your computer and use it in GitHub Desktop.
import config from './../config/config';
import axios from 'axios';
const authentication = {
login(email)
{
return axios.get(config.url+config.bucket_slug+"/object-type/admins/search",{
params:{
metafield_key: 'email',
metafield_value: email,
limit: 1,
read_key: config.read_key
}
})
}
}
export default authentication;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment