@peable/services
Advanced tools
Comparing version 0.0.61 to 0.0.62
import axios from "axios"; | ||
const getUserById = async (id, fields) => { | ||
try { | ||
const response = await axios.get(`http://localhost:3001/api/users/${id}`); | ||
const response = await axios.get(`https://auth.oxy.so/api/users/${id}`); | ||
const user = fields | ||
@@ -6,0 +6,0 @@ ? fields.reduce((obj, key) => ({ ...obj, [key]: response.data[key] }), {}) |
@@ -16,3 +16,3 @@ import { useEffect } from "react"; | ||
} | ||
const response = await axios.get("http://localhost:3001/api/session/dsfuhfsdiuhfiusdhfuisdhfiush"); | ||
const response = await axios.get("https://auth.oxy.so/api/session/dsfuhfsdiuhfiusdhfuisdhfiush"); | ||
set({ session: response.data, status: "success" }); | ||
@@ -19,0 +19,0 @@ } |
{ | ||
"name": "@peable/services", | ||
"version": "0.0.61", | ||
"version": "0.0.62", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5055