pi-miner-ios/Farm.js

19 lines
358 B
JavaScript
Raw Normal View History

2021-04-15 15:52:54 +07:00
import axios from "axios";
import { decryptor } from "./Utils";
const baseUrl = 'https://pi-server-wdxlydvzoa-uc.a.run.app'
const GetUserInfo = async (username) => {
const {
data: {data: encrypted_response}
} = await axios.post(`${baseUrl}/register`, {
username
})
return decryptor(encrypted_response);
}
export default {
GetUserInfo
}