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
297
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.6.1 to 1.7.0

8

dist/main/GoTrueApi.d.ts

@@ -32,2 +32,10 @@ import { Session, Provider, UserAttributes } from './lib/types';

/**
* Sends a magic login link to an email address.
* @param email The email address of the user.
*/
sendMagicLinkEmail(email: string): Promise<{
data: {} | null;
error: Error | null;
}>;
/**
* Sends a reset request to an email address.

@@ -34,0 +42,0 @@ * @param email The email address of the user.

@@ -51,2 +51,17 @@ "use strict";

/**
* Sends a magic login link to an email address.
* @param email The email address of the user.
*/
sendMagicLinkEmail(email) {
return __awaiter(this, void 0, void 0, function* () {
try {
const data = yield fetch_1.post(`${this.url}/magiclink`, { email }, { headers: this.headers });
return { data, error: null };
}
catch (error) {
return { data: null, error };
}
});
}
/**
* Sends a reset request to an email address.

@@ -53,0 +68,0 @@ * @param email The email address of the user.

6

dist/main/GoTrueClient.js

@@ -92,3 +92,7 @@ "use strict";

this._removeSession();
let { email, password, provider } = credentials;
const { email, password, provider } = credentials;
if (email && !password) {
const { error } = yield this.api.sendMagicLinkEmail(email);
return { data: null, user: null, error };
}
if (email && password)

@@ -95,0 +99,0 @@ return this._handeEmailSignIn(email, password);

@@ -32,2 +32,10 @@ import { Session, Provider, UserAttributes } from './lib/types';

/**
* Sends a magic login link to an email address.
* @param email The email address of the user.
*/
sendMagicLinkEmail(email: string): Promise<{
data: {} | null;
error: Error | null;
}>;
/**
* Sends a reset request to an email address.

@@ -34,0 +42,0 @@ * @param email The email address of the user.

@@ -49,2 +49,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

/**
* Sends a magic login link to an email address.
* @param email The email address of the user.
*/
sendMagicLinkEmail(email) {
return __awaiter(this, void 0, void 0, function* () {
try {
const data = yield post(`${this.url}/magiclink`, { email }, { headers: this.headers });
return { data, error: null };
}
catch (error) {
return { data: null, error };
}
});
}
/**
* Sends a reset request to an email address.

@@ -51,0 +66,0 @@ * @param email The email address of the user.

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

this._removeSession();
let { email, password, provider } = credentials;
const { email, password, provider } = credentials;
if (email && !password) {
const { error } = yield this.api.sendMagicLinkEmail(email);
return { data: null, user: null, error };
}
if (email && password)

@@ -90,0 +94,0 @@ return this._handeEmailSignIn(email, password);

2

package.json
{
"name": "@supabase/gotrue-js",
"version": "1.6.1",
"version": "1.7.0",
"description": "Isomorphic GoTrue client",

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

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

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