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

@supabase/auth-js

Package Overview
Dependencies
Maintainers
0
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supabase/auth-js - npm Package Compare versions

Comparing version 2.67.4-rc.2 to 2.67.4-rc.4

61

dist/main/lib/types.d.ts
import { AuthError } from './errors';
import { Fetch } from './fetch';
import { MFAEnrollTOTPParams, MFAEnrollPhoneParams, AuthMFAEnrollTOTPResponse, AuthMFAEnrollPhoneResponse } from './internal-types';
/** One of the providers supported by GoTrue. */

@@ -955,3 +954,63 @@ export declare type Provider = 'apple' | 'azure' | 'bitbucket' | 'discord' | 'facebook' | 'figma' | 'github' | 'gitlab' | 'google' | 'kakao' | 'keycloak' | 'linkedin' | 'linkedin_oidc' | 'notion' | 'slack' | 'slack_oidc' | 'spotify' | 'twitch' | 'twitter' | 'workos' | 'zoom' | 'fly';

};
export declare 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 declare 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 declare type AuthMFAEnrollTOTPResponse = {
data: {
/** ID of the factor that was just enrolled (in an unverified state). */
id: string;
/** 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;
/** 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;
} | {
data: null;
error: AuthError;
};
export declare type AuthMFAEnrollPhoneResponse = {
data: {
/** ID of the factor that was just enrolled (in an unverified state). */
id: string;
/** Type of MFA factor. */
type: 'phone';
/** 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;
};
export {};
//# sourceMappingURL=types.d.ts.map

2

dist/main/lib/version.d.ts

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

export declare const version = "2.67.4-rc.2";
export declare const version = "2.67.4-rc.4";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = '2.67.4-rc.2';
exports.version = '2.67.4-rc.4';
//# sourceMappingURL=version.js.map
import { AuthError } from './errors';
import { Fetch } from './fetch';
import { MFAEnrollTOTPParams, MFAEnrollPhoneParams, AuthMFAEnrollTOTPResponse, AuthMFAEnrollPhoneResponse } from './internal-types';
/** One of the providers supported by GoTrue. */

@@ -955,3 +954,63 @@ export declare type Provider = 'apple' | 'azure' | 'bitbucket' | 'discord' | 'facebook' | 'figma' | 'github' | 'gitlab' | 'google' | 'kakao' | 'keycloak' | 'linkedin' | 'linkedin_oidc' | 'notion' | 'slack' | 'slack_oidc' | 'spotify' | 'twitch' | 'twitter' | 'workos' | 'zoom' | 'fly';

};
export declare 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 declare 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 declare type AuthMFAEnrollTOTPResponse = {
data: {
/** ID of the factor that was just enrolled (in an unverified state). */
id: string;
/** 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;
/** 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;
} | {
data: null;
error: AuthError;
};
export declare type AuthMFAEnrollPhoneResponse = {
data: {
/** ID of the factor that was just enrolled (in an unverified state). */
id: string;
/** Type of MFA factor. */
type: 'phone';
/** 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;
};
export {};
//# sourceMappingURL=types.d.ts.map

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

export declare const version = "2.67.4-rc.2";
export declare const version = "2.67.4-rc.4";
//# sourceMappingURL=version.d.ts.map

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

export const version = '2.67.4-rc.2';
export const version = '2.67.4-rc.4';
//# sourceMappingURL=version.js.map
{
"name": "@supabase/auth-js",
"version": "2.67.4-rc.2",
"version": "2.67.4-rc.4",
"private": false,

@@ -23,3 +23,3 @@ "description": "Official client library for Supabase Auth",

"types": "dist/module/index.d.ts",
"repository": "supabase/auth-js",
"repository": "github:supabase/auth-js",
"scripts": {

@@ -26,0 +26,0 @@ "clean": "rimraf dist docs",

import { AuthError } from './errors'
import { Fetch } from './fetch'
import {
MFAEnrollTOTPParams,
MFAEnrollPhoneParams,
AuthMFAEnrollTOTPResponse,
AuthMFAEnrollPhoneResponse,
} from './internal-types'

@@ -1134,1 +1128,75 @@ /** One of the providers supported by GoTrue. */

}
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 AuthMFAEnrollTOTPResponse =
| {
data: {
/** ID of the factor that was just enrolled (in an unverified state). */
id: string
/** 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
/** 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
}
| {
data: null
error: AuthError
}
export type AuthMFAEnrollPhoneResponse =
| {
data: {
/** ID of the factor that was just enrolled (in an unverified state). */
id: string
/** Type of MFA factor. */
type: 'phone'
/** 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
}

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

export const version = '2.67.4-rc.2'
export const version = '2.67.4-rc.4'

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 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