@supabase/gotrue-js
Advanced tools
Comparing version 2.65.1-rc.5 to 2.65.1-rc.6
import { AuthError } from './errors'; | ||
import { Fetch } from './fetch'; | ||
import { MFAEnrollTOTPParams, MFAEnrollPhoneParams, AuthMFAEnrollTOTPResponse, AuthMFAEnrollPhoneResponse } from './internal-types'; | ||
/** One of the providers supported by GoTrue. */ | ||
@@ -673,18 +674,2 @@ 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 GenerateLinkType = 'signup' | 'invite' | 'magiclink' | 'recovery' | 'email_change_current' | 'email_change_new'; | ||
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 MFAEnrollParams = MFAEnrollTOTPParams | MFAEnrollPhoneParams; | ||
@@ -733,45 +718,3 @@ export declare type MFAUnenrollParams = { | ||
}; | ||
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; | ||
}; | ||
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; | ||
}; | ||
export declare type AuthMFAEnrollErrorResponse = { | ||
data: null; | ||
error: AuthError; | ||
}; | ||
export declare type AuthMFAEnrollResponse = AuthMFAEnrollTOTPResponse | AuthMFAEnrollPhoneResponse | AuthMFAEnrollErrorResponse; | ||
export declare type AuthMFAEnrollResponse = AuthMFAEnrollTOTPResponse | AuthMFAEnrollPhoneResponse; | ||
export declare type AuthMFAUnenrollResponse = { | ||
@@ -854,4 +797,4 @@ data: { | ||
*/ | ||
enroll(params: MFAEnrollTOTPParams): Promise<AuthMFAEnrollTOTPResponse | AuthMFAEnrollErrorResponse>; | ||
enroll(params: MFAEnrollPhoneParams): Promise<AuthMFAEnrollPhoneResponse | AuthMFAEnrollErrorResponse>; | ||
enroll(params: MFAEnrollTOTPParams): Promise<AuthMFAEnrollTOTPResponse>; | ||
enroll(params: MFAEnrollPhoneParams): Promise<AuthMFAEnrollPhoneResponse>; | ||
enroll(params: MFAEnrollParams): Promise<AuthMFAEnrollResponse>; | ||
@@ -858,0 +801,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.65.1-rc.5"; | ||
export declare const version = "2.65.1-rc.6"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '2.65.1-rc.5'; | ||
exports.version = '2.65.1-rc.6'; | ||
//# 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. */ | ||
@@ -673,18 +674,2 @@ 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 GenerateLinkType = 'signup' | 'invite' | 'magiclink' | 'recovery' | 'email_change_current' | 'email_change_new'; | ||
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 MFAEnrollParams = MFAEnrollTOTPParams | MFAEnrollPhoneParams; | ||
@@ -733,45 +718,3 @@ export declare type MFAUnenrollParams = { | ||
}; | ||
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; | ||
}; | ||
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; | ||
}; | ||
export declare type AuthMFAEnrollErrorResponse = { | ||
data: null; | ||
error: AuthError; | ||
}; | ||
export declare type AuthMFAEnrollResponse = AuthMFAEnrollTOTPResponse | AuthMFAEnrollPhoneResponse | AuthMFAEnrollErrorResponse; | ||
export declare type AuthMFAEnrollResponse = AuthMFAEnrollTOTPResponse | AuthMFAEnrollPhoneResponse; | ||
export declare type AuthMFAUnenrollResponse = { | ||
@@ -854,4 +797,4 @@ data: { | ||
*/ | ||
enroll(params: MFAEnrollTOTPParams): Promise<AuthMFAEnrollTOTPResponse | AuthMFAEnrollErrorResponse>; | ||
enroll(params: MFAEnrollPhoneParams): Promise<AuthMFAEnrollPhoneResponse | AuthMFAEnrollErrorResponse>; | ||
enroll(params: MFAEnrollTOTPParams): Promise<AuthMFAEnrollTOTPResponse>; | ||
enroll(params: MFAEnrollPhoneParams): Promise<AuthMFAEnrollPhoneResponse>; | ||
enroll(params: MFAEnrollParams): Promise<AuthMFAEnrollResponse>; | ||
@@ -858,0 +801,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.65.1-rc.5"; | ||
export declare const version = "2.65.1-rc.6"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = '2.65.1-rc.5'; | ||
export const version = '2.65.1-rc.6'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@supabase/gotrue-js", | ||
"version": "2.65.1-rc.5", | ||
"version": "2.65.1-rc.6", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Official client library for Supabase Auth", |
import { AuthError } from './errors' | ||
import { Fetch } from './fetch' | ||
import { | ||
MFAEnrollTOTPParams, | ||
MFAEnrollPhoneParams, | ||
AuthMFAEnrollTOTPResponse, | ||
AuthMFAEnrollPhoneResponse, | ||
} from './internal-types' | ||
@@ -803,18 +809,2 @@ /** 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 MFAEnrollParams = MFAEnrollTOTPParams | MFAEnrollPhoneParams | ||
@@ -877,56 +867,4 @@ | ||
export type AuthMFAEnrollTOTPResponse = { | ||
data: { | ||
/** ID of the factor that was just enrolled (in an unverified state). */ | ||
id: string | ||
export type AuthMFAEnrollResponse = AuthMFAEnrollTOTPResponse | AuthMFAEnrollPhoneResponse | ||
/** 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 | ||
} | ||
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 | ||
} | ||
export type AuthMFAEnrollErrorResponse = { | ||
data: null | ||
error: AuthError | ||
} | ||
export type AuthMFAEnrollResponse = | ||
| AuthMFAEnrollTOTPResponse | ||
| AuthMFAEnrollPhoneResponse | ||
| AuthMFAEnrollErrorResponse | ||
export type AuthMFAUnenrollResponse = | ||
@@ -1015,8 +953,4 @@ | { | ||
*/ | ||
enroll( | ||
params: MFAEnrollTOTPParams | ||
): Promise<AuthMFAEnrollTOTPResponse | AuthMFAEnrollErrorResponse> | ||
enroll( | ||
params: MFAEnrollPhoneParams | ||
): Promise<AuthMFAEnrollPhoneResponse | AuthMFAEnrollErrorResponse> | ||
enroll(params: MFAEnrollTOTPParams): Promise<AuthMFAEnrollTOTPResponse> | ||
enroll(params: MFAEnrollPhoneParams): Promise<AuthMFAEnrollPhoneResponse> | ||
enroll(params: MFAEnrollParams): Promise<AuthMFAEnrollResponse> | ||
@@ -1023,0 +957,0 @@ |
@@ -1,1 +0,1 @@ | ||
export const version = '2.65.1-rc.5' | ||
export const version = '2.65.1-rc.6' |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
811103
147
14475