New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nhost/nhost-js

Package Overview
Dependencies
Maintainers
3
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nhost/nhost-js - npm Package Compare versions

Comparing version 0.0.1-3 to 0.0.1-4

14

dist/nhost-auth.js

@@ -165,8 +165,10 @@ "use strict";

case 4:
if ("mfa" in res.data) {
return [2 /*return*/, { session: null, user: null, mfa: { ticket: res.data.ticket } }];
}
// if ("mfa" in res.data) {
// return { session: null, user: null, mfa: { ticket: res.data.ticket } };
// }
if ("magicLink" in res.data) {
return [2 /*return*/, { session: null, user: null, magicLink: true }];
}
console.log("set session");
console.log(res.data);
this._setSession(res.data);

@@ -489,6 +491,4 @@ return [2 /*return*/, { session: res.data, user: res.data.user }];

this.refreshTokenLock = true;
return [4 /*yield*/, this.httpClient.get("/token/refresh", {
params: {
refreshToken: refreshToken,
},
return [4 /*yield*/, this.httpClient.post("/token", {
refreshToken: refreshToken,
})];

@@ -495,0 +495,0 @@ case 4:

@@ -14,4 +14,7 @@ "use strict";

this.session = session;
console.log("session:");
console.log(session);
var jwtTokenDecoded = jwt_decode_1.default(session.accessToken);
this.claims = jwtTokenDecoded["https://hasura.io/jwt/claims"];
console.log(this.claims);
};

@@ -18,0 +21,0 @@ UserSession.prototype.clearSession = function () {

{
"name": "@nhost/nhost-js",
"version": "0.0.1-3",
"version": "0.0.1-4",
"description": "Nhost JavaScript SDK",

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

Sorry, the diff of this file is not supported yet

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