Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@peable/services

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peable/services - npm Package Compare versions

Comparing version 0.0.50 to 0.0.51

17

dist/hooks/usePeableSession.js

@@ -22,8 +22,15 @@ import { useState, useEffect } from "react";

// Session retrieval (as before)
const sessionResponse = await axios.get(config.SERVICES_URL + "/api/auth/session", {
withCredentials: true,
const sessionResponse = await fetch(config.SERVICES_URL + "/api/auth/session", {
credentials: "include",
});
if (sessionResponse?.data) {
setSession(sessionResponse.data);
setStatus("authenticated");
if (sessionResponse.ok) {
const sessionData = await sessionResponse.json();
if (sessionData) {
setSession(sessionData);
setStatus("authenticated");
}
else {
setSession(null);
setStatus("unauthenticated");
}
}

@@ -30,0 +37,0 @@ else {

{
"name": "@peable/services",
"version": "0.0.50",
"version": "0.0.51",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc