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

@supabase/gotrue-js

Package Overview
Dependencies
Maintainers
3
Versions
299
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supabase/gotrue-js - npm Package Compare versions

Comparing version 1.13.1 to 1.13.2

9

dist/main/GoTrueClient.js

@@ -340,3 +340,3 @@ "use strict";

const json = helpers_1.isBrowser() && ((_a = this.localStorage) === null || _a === void 0 ? void 0 : _a.getItem(constants_1.STORAGE_KEY));
if (!json) {
if (!json || typeof json !== 'string') {
return null;

@@ -387,5 +387,6 @@ }

else {
// should be handle on _recoverSession method already
// this._saveSession(currentSession)
// this._notifyAllSubscribers('SIGNED_IN')
// should be handled on _recoverSession method already
// But we still need the code here to accommodate for AsyncStorage e.g. in React native
this._saveSession(currentSession);
this._notifyAllSubscribers('SIGNED_IN');
}

@@ -392,0 +393,0 @@ }

@@ -335,3 +335,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const json = isBrowser() && ((_a = this.localStorage) === null || _a === void 0 ? void 0 : _a.getItem(STORAGE_KEY));
if (!json) {
if (!json || typeof json !== 'string') {
return null;

@@ -382,5 +382,6 @@ }

else {
// should be handle on _recoverSession method already
// this._saveSession(currentSession)
// this._notifyAllSubscribers('SIGNED_IN')
// should be handled on _recoverSession method already
// But we still need the code here to accommodate for AsyncStorage e.g. in React native
this._saveSession(currentSession);
this._notifyAllSubscribers('SIGNED_IN');
}

@@ -387,0 +388,0 @@ }

{
"name": "@supabase/gotrue-js",
"version": "1.13.1",
"version": "1.13.2",
"description": "Isomorphic GoTrue client",

@@ -5,0 +5,0 @@ "keywords": [

@@ -405,3 +405,3 @@ import GoTrueApi from './GoTrueApi'

const json = isBrowser() && this.localStorage?.getItem(STORAGE_KEY)
if (!json) {
if (!json || typeof json !== 'string') {
return null

@@ -452,5 +452,6 @@ }

} else {
// should be handle on _recoverSession method already
// this._saveSession(currentSession)
// this._notifyAllSubscribers('SIGNED_IN')
// should be handled on _recoverSession method already
// But we still need the code here to accommodate for AsyncStorage e.g. in React native
this._saveSession(currentSession)
this._notifyAllSubscribers('SIGNED_IN')
}

@@ -457,0 +458,0 @@ } catch (err) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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