@peable/services
Advanced tools
Comparing version 0.0.57 to 0.0.58
@@ -0,3 +1,13 @@ | ||
interface SessionModel { | ||
id: string; | ||
username: string; | ||
name: string; | ||
lastname: string; | ||
email: string; | ||
verified: boolean; | ||
profile_image_url: string; | ||
created_at: string; | ||
} | ||
declare function usePeableSession(): { | ||
session: null; | ||
session: SessionModel | null; | ||
status: string; | ||
@@ -4,0 +14,0 @@ error: any; |
@@ -13,2 +13,3 @@ import { useState, useEffect } from "react"; | ||
try { | ||
setStatus("loading"); // Set status to "loading" | ||
const response = await axios.get("https://accounts.peable.co/clientKey.php"); | ||
@@ -28,2 +29,3 @@ const data = response.data; | ||
try { | ||
setStatus("loading"); // Set status to "loading" | ||
const response = await axios.get("http://localhost:3001/api/session/dsfuhfsdiuhfiusdhfuisdhfiush"); | ||
@@ -30,0 +32,0 @@ setSessionData(response.data); |
{ | ||
"name": "@peable/services", | ||
"version": "0.0.57", | ||
"version": "0.0.58", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
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
5053
92