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

@supabase/gotrue-js

Package Overview
Dependencies
Maintainers
10
Versions
295
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 2.65.0 to 2.65.1-rc.1

17

dist/main/lib/types.d.ts

@@ -673,3 +673,3 @@ import { AuthError } from './errors';

export declare type GenerateLinkType = 'signup' | 'invite' | 'magiclink' | 'recovery' | 'email_change_current' | 'email_change_new';
export declare type MFAEnrollParams = {
export declare type MFAEnrollTOTPParams = {
/** The type of factor being enrolled. */

@@ -681,3 +681,4 @@ factorType: 'totp';

friendlyName?: string;
} | {
};
export declare type MFAEnrollPhoneParams = {
/** The type of factor being enrolled. */

@@ -690,2 +691,3 @@ factorType: 'phone';

};
export declare type MFAEnrollParams = MFAEnrollTOTPParams | MFAEnrollPhoneParams;
export declare type MFAUnenrollParams = {

@@ -733,3 +735,3 @@ /** ID of the factor being unenrolled. */

};
export declare type AuthMFAEnrollResponse = {
export declare type AuthMFAEnrollTOTPResponse = {
data: {

@@ -758,3 +760,4 @@ /** ID of the factor that was just enrolled (in an unverified state). */

error: null;
} | {
};
export declare type AuthMFAEnrollPhoneResponse = {
data: {

@@ -771,6 +774,8 @@ /** ID of the factor that was just enrolled (in an unverified state). */

error: null;
} | {
};
export declare type AuthMFAEnrollErrorResponse = {
data: null;
error: AuthError;
};
export declare type AuthMFAEnrollResponse = AuthMFAEnrollTOTPResponse | AuthMFAEnrollPhoneResponse | AuthMFAEnrollErrorResponse;
export declare type AuthMFAUnenrollResponse = {

@@ -853,2 +858,4 @@ data: {

*/
enroll(params: MFAEnrollTOTPParams): Promise<AuthMFAEnrollTOTPResponse | AuthMFAEnrollErrorResponse>;
enroll(params: MFAEnrollPhoneParams): Promise<AuthMFAEnrollPhoneResponse | AuthMFAEnrollErrorResponse>;
enroll(params: MFAEnrollParams): Promise<AuthMFAEnrollResponse>;

@@ -855,0 +862,0 @@ /**

@@ -1,2 +0,2 @@

export declare const version = "2.65.0";
export declare const version = "2.65.1-rc.1";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = '2.65.0';
exports.version = '2.65.1-rc.1';
//# sourceMappingURL=version.js.map

@@ -673,3 +673,3 @@ import { AuthError } from './errors';

export declare type GenerateLinkType = 'signup' | 'invite' | 'magiclink' | 'recovery' | 'email_change_current' | 'email_change_new';
export declare type MFAEnrollParams = {
export declare type MFAEnrollTOTPParams = {
/** The type of factor being enrolled. */

@@ -681,3 +681,4 @@ factorType: 'totp';

friendlyName?: string;
} | {
};
export declare type MFAEnrollPhoneParams = {
/** The type of factor being enrolled. */

@@ -690,2 +691,3 @@ factorType: 'phone';

};
export declare type MFAEnrollParams = MFAEnrollTOTPParams | MFAEnrollPhoneParams;
export declare type MFAUnenrollParams = {

@@ -733,3 +735,3 @@ /** ID of the factor being unenrolled. */

};
export declare type AuthMFAEnrollResponse = {
export declare type AuthMFAEnrollTOTPResponse = {
data: {

@@ -758,3 +760,4 @@ /** ID of the factor that was just enrolled (in an unverified state). */

error: null;
} | {
};
export declare type AuthMFAEnrollPhoneResponse = {
data: {

@@ -771,6 +774,8 @@ /** ID of the factor that was just enrolled (in an unverified state). */

error: null;
} | {
};
export declare type AuthMFAEnrollErrorResponse = {
data: null;
error: AuthError;
};
export declare type AuthMFAEnrollResponse = AuthMFAEnrollTOTPResponse | AuthMFAEnrollPhoneResponse | AuthMFAEnrollErrorResponse;
export declare type AuthMFAUnenrollResponse = {

@@ -853,2 +858,4 @@ data: {

*/
enroll(params: MFAEnrollTOTPParams): Promise<AuthMFAEnrollTOTPResponse | AuthMFAEnrollErrorResponse>;
enroll(params: MFAEnrollPhoneParams): Promise<AuthMFAEnrollPhoneResponse | AuthMFAEnrollErrorResponse>;
enroll(params: MFAEnrollParams): Promise<AuthMFAEnrollResponse>;

@@ -855,0 +862,0 @@ /**

@@ -1,2 +0,2 @@

export declare const version = "2.65.0";
export declare const version = "2.65.1-rc.1";
//# sourceMappingURL=version.d.ts.map

@@ -1,2 +0,2 @@

export const version = '2.65.0';
export const version = '2.65.1-rc.1';
//# sourceMappingURL=version.js.map
{
"name": "@supabase/gotrue-js",
"version": "2.65.0",
"version": "2.65.1-rc.1",
"private": false,

@@ -5,0 +5,0 @@ "description": "Official client library for Supabase Auth",

@@ -803,19 +803,19 @@ import { AuthError } from './errors'

export type MFAEnrollParams =
| {
/** The type of factor being enrolled. */
factorType: 'totp'
/** Domain which the user is enrolled with. */
issuer?: string
/** Human readable name assigned to the factor. */
friendlyName?: string
}
| {
/** The type of factor being enrolled. */
factorType: 'phone'
/** Human readable name assigned to the factor. */
friendlyName?: string
/** Phone number associated with a factor. Number should conform to E.164 format */
phone: string
}
export type MFAEnrollTOTPParams = {
/** The type of factor being enrolled. */
factorType: 'totp'
/** Domain which the user is enrolled with. */
issuer?: string
/** Human readable name assigned to the factor. */
friendlyName?: string
}
export type MFAEnrollPhoneParams = {
/** The type of factor being enrolled. */
factorType: 'phone'
/** Human readable name assigned to the factor. */
friendlyName?: string
/** Phone number associated with a factor. Number should conform to E.164 format */
phone: string
}
export type MFAEnrollParams = MFAEnrollTOTPParams | MFAEnrollPhoneParams

@@ -877,52 +877,55 @@ export type MFAUnenrollParams = {

export type AuthMFAEnrollResponse =
| {
data: {
/** ID of the factor that was just enrolled (in an unverified state). */
id: string
export type AuthMFAEnrollTOTPResponse = {
data: {
/** ID of the factor that was just enrolled (in an unverified state). */
id: string
/** Type of MFA factor.*/
type: 'totp'
/** Type of MFA factor.*/
type: 'totp'
/** TOTP enrollment information. */
totp: {
/** Contains a QR code encoding the authenticator URI. You can
* convert it to a URL by prepending `data:image/svg+xml;utf-8,` to
* the value. Avoid logging this value to the console. */
qr_code: string
/** TOTP enrollment information. */
totp: {
/** Contains a QR code encoding the authenticator URI. You can
* convert it to a URL by prepending `data:image/svg+xml;utf-8,` to
* the value. Avoid logging this value to the console. */
qr_code: string
/** The TOTP secret (also encoded in the QR code). Show this secret
* in a password-style field to the user, in case they are unable to
* scan the QR code. Avoid logging this value to the console. */
secret: string
/** The TOTP secret (also encoded in the QR code). Show this secret
* in a password-style field to the user, in case they are unable to
* scan the QR code. Avoid logging this value to the console. */
secret: string
/** The authenticator URI encoded within the QR code, should you need
* to use it. Avoid loggin this value to the console. */
uri: string
}
/** Friendly name of the factor, useful for distinguishing between factors **/
friendly_name?: string
}
error: null
/** The authenticator URI encoded within the QR code, should you need
* to use it. Avoid loggin this value to the console. */
uri: string
}
| {
data: {
/** ID of the factor that was just enrolled (in an unverified state). */
id: string
/** Friendly name of the factor, useful for distinguishing between factors **/
friendly_name?: string
}
error: null
}
export type AuthMFAEnrollPhoneResponse = {
data: {
/** ID of the factor that was just enrolled (in an unverified state). */
id: string
/** Type of MFA factor. */
type: 'phone'
/** Type of MFA factor. */
type: 'phone'
/** Friendly name of the factor, useful for distinguishing between factors **/
friendly_name?: string
/** Friendly name of the factor, useful for distinguishing between factors **/
friendly_name?: string
/** Phone number of the MFA factor in E.164 format. Used to send messages */
phone: string
}
error: null
}
| {
data: null
error: AuthError
}
/** Phone number of the MFA factor in E.164 format. Used to send messages */
phone: string
}
error: null
}
export type AuthMFAEnrollErrorResponse = {
data: null
error: AuthError
}
export type AuthMFAEnrollResponse =
| AuthMFAEnrollTOTPResponse
| AuthMFAEnrollPhoneResponse
| AuthMFAEnrollErrorResponse

@@ -1012,2 +1015,8 @@ export type AuthMFAUnenrollResponse =

*/
enroll(
params: MFAEnrollTOTPParams
): Promise<AuthMFAEnrollTOTPResponse | AuthMFAEnrollErrorResponse>
enroll(
params: MFAEnrollPhoneParams
): Promise<AuthMFAEnrollPhoneResponse | AuthMFAEnrollErrorResponse>
enroll(params: MFAEnrollParams): Promise<AuthMFAEnrollResponse>

@@ -1014,0 +1023,0 @@

@@ -1,1 +0,1 @@

export const version = '2.65.0'
export const version = '2.65.1-rc.1'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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 too big to display

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 too big to display

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