@supabase/auth-js 2.67.4-rc.2 → 2.67.4-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,62 +0,0 @@
1
- import { AuthError } from './errors';
2
- export declare type MFAEnrollTOTPParams = {
3
- /** The type of factor being enrolled. */
4
- factorType: 'totp';
5
- /** Domain which the user is enrolled with. */
6
- issuer?: string;
7
- /** Human readable name assigned to the factor. */
8
- friendlyName?: string;
9
- };
10
- export declare type MFAEnrollPhoneParams = {
11
- /** The type of factor being enrolled. */
12
- factorType: 'phone';
13
- /** Human readable name assigned to the factor. */
14
- friendlyName?: string;
15
- /** Phone number associated with a factor. Number should conform to E.164 format */
16
- phone: string;
17
- };
18
- export declare type AuthMFAEnrollTOTPResponse = {
19
- data: {
20
- /** ID of the factor that was just enrolled (in an unverified state). */
21
- id: string;
22
- /** Type of MFA factor.*/
23
- type: 'totp';
24
- /** TOTP enrollment information. */
25
- totp: {
26
- /** Contains a QR code encoding the authenticator URI. You can
27
- * convert it to a URL by prepending `data:image/svg+xml;utf-8,` to
28
- * the value. Avoid logging this value to the console. */
29
- qr_code: string;
30
- /** The TOTP secret (also encoded in the QR code). Show this secret
31
- * in a password-style field to the user, in case they are unable to
32
- * scan the QR code. Avoid logging this value to the console. */
33
- secret: string;
34
- /** The authenticator URI encoded within the QR code, should you need
35
- * to use it. Avoid loggin this value to the console. */
36
- uri: string;
37
- };
38
- /** Friendly name of the factor, useful for distinguishing between factors **/
39
- friendly_name?: string;
40
- };
41
- error: null;
42
- } | {
43
- data: null;
44
- error: AuthError;
45
- };
46
- export declare type AuthMFAEnrollPhoneResponse = {
47
- data: {
48
- /** ID of the factor that was just enrolled (in an unverified state). */
49
- id: string;
50
- /** Type of MFA factor. */
51
- type: 'phone';
52
- /** Friendly name of the factor, useful for distinguishing between factors **/
53
- friendly_name?: string;
54
- /** Phone number of the MFA factor in E.164 format. Used to send messages */
55
- phone: string;
56
- };
57
- error: null;
58
- } | {
59
- data: null;
60
- error: AuthError;
61
- };
62
- //# sourceMappingURL=internal-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["../../../src/lib/internal-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEpC,oBAAY,mBAAmB,GAAG;IAChC,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AACD,oBAAY,oBAAoB,GAAG;IACjC,yCAAyC;IACzC,UAAU,EAAE,OAAO,CAAA;IACnB,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mFAAmF;IACnF,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,oBAAY,yBAAyB,GACjC;IACE,IAAI,EAAE;QACJ,wEAAwE;QACxE,EAAE,EAAE,MAAM,CAAA;QAEV,yBAAyB;QACzB,IAAI,EAAE,MAAM,CAAA;QAEZ,mCAAmC;QACnC,IAAI,EAAE;YACJ;;qEAEyD;YACzD,OAAO,EAAE,MAAM,CAAA;YAEf;;4EAEgE;YAChE,MAAM,EAAE,MAAM,CAAA;YAEd;oEACwD;YACxD,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,8EAA8E;QAC9E,aAAa,CAAC,EAAE,MAAM,CAAA;KACvB,CAAA;IACD,KAAK,EAAE,IAAI,CAAA;CACZ,GACD;IACE,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,SAAS,CAAA;CACjB,CAAA;AAEL,oBAAY,0BAA0B,GAClC;IACE,IAAI,EAAE;QACJ,wEAAwE;QACxE,EAAE,EAAE,MAAM,CAAA;QAEV,0BAA0B;QAC1B,IAAI,EAAE,OAAO,CAAA;QAEb,8EAA8E;QAC9E,aAAa,CAAC,EAAE,MAAM,CAAA;QAEtB,6EAA6E;QAC7E,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,KAAK,EAAE,IAAI,CAAA;CACZ,GACD;IACE,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,SAAS,CAAA;CACjB,CAAA"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=internal-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-types.js","sourceRoot":"","sources":["../../../src/lib/internal-types.ts"],"names":[],"mappings":""}
@@ -1,62 +0,0 @@
1
- import { AuthError } from './errors';
2
- export declare type MFAEnrollTOTPParams = {
3
- /** The type of factor being enrolled. */
4
- factorType: 'totp';
5
- /** Domain which the user is enrolled with. */
6
- issuer?: string;
7
- /** Human readable name assigned to the factor. */
8
- friendlyName?: string;
9
- };
10
- export declare type MFAEnrollPhoneParams = {
11
- /** The type of factor being enrolled. */
12
- factorType: 'phone';
13
- /** Human readable name assigned to the factor. */
14
- friendlyName?: string;
15
- /** Phone number associated with a factor. Number should conform to E.164 format */
16
- phone: string;
17
- };
18
- export declare type AuthMFAEnrollTOTPResponse = {
19
- data: {
20
- /** ID of the factor that was just enrolled (in an unverified state). */
21
- id: string;
22
- /** Type of MFA factor.*/
23
- type: 'totp';
24
- /** TOTP enrollment information. */
25
- totp: {
26
- /** Contains a QR code encoding the authenticator URI. You can
27
- * convert it to a URL by prepending `data:image/svg+xml;utf-8,` to
28
- * the value. Avoid logging this value to the console. */
29
- qr_code: string;
30
- /** The TOTP secret (also encoded in the QR code). Show this secret
31
- * in a password-style field to the user, in case they are unable to
32
- * scan the QR code. Avoid logging this value to the console. */
33
- secret: string;
34
- /** The authenticator URI encoded within the QR code, should you need
35
- * to use it. Avoid loggin this value to the console. */
36
- uri: string;
37
- };
38
- /** Friendly name of the factor, useful for distinguishing between factors **/
39
- friendly_name?: string;
40
- };
41
- error: null;
42
- } | {
43
- data: null;
44
- error: AuthError;
45
- };
46
- export declare type AuthMFAEnrollPhoneResponse = {
47
- data: {
48
- /** ID of the factor that was just enrolled (in an unverified state). */
49
- id: string;
50
- /** Type of MFA factor. */
51
- type: 'phone';
52
- /** Friendly name of the factor, useful for distinguishing between factors **/
53
- friendly_name?: string;
54
- /** Phone number of the MFA factor in E.164 format. Used to send messages */
55
- phone: string;
56
- };
57
- error: null;
58
- } | {
59
- data: null;
60
- error: AuthError;
61
- };
62
- //# sourceMappingURL=internal-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["../../../src/lib/internal-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEpC,oBAAY,mBAAmB,GAAG;IAChC,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AACD,oBAAY,oBAAoB,GAAG;IACjC,yCAAyC;IACzC,UAAU,EAAE,OAAO,CAAA;IACnB,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mFAAmF;IACnF,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,oBAAY,yBAAyB,GACjC;IACE,IAAI,EAAE;QACJ,wEAAwE;QACxE,EAAE,EAAE,MAAM,CAAA;QAEV,yBAAyB;QACzB,IAAI,EAAE,MAAM,CAAA;QAEZ,mCAAmC;QACnC,IAAI,EAAE;YACJ;;qEAEyD;YACzD,OAAO,EAAE,MAAM,CAAA;YAEf;;4EAEgE;YAChE,MAAM,EAAE,MAAM,CAAA;YAEd;oEACwD;YACxD,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,8EAA8E;QAC9E,aAAa,CAAC,EAAE,MAAM,CAAA;KACvB,CAAA;IACD,KAAK,EAAE,IAAI,CAAA;CACZ,GACD;IACE,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,SAAS,CAAA;CACjB,CAAA;AAEL,oBAAY,0BAA0B,GAClC;IACE,IAAI,EAAE;QACJ,wEAAwE;QACxE,EAAE,EAAE,MAAM,CAAA;QAEV,0BAA0B;QAC1B,IAAI,EAAE,OAAO,CAAA;QAEb,8EAA8E;QAC9E,aAAa,CAAC,EAAE,MAAM,CAAA;QAEtB,6EAA6E;QAC7E,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,KAAK,EAAE,IAAI,CAAA;CACZ,GACD;IACE,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,SAAS,CAAA;CACjB,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=internal-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-types.js","sourceRoot":"","sources":["../../../src/lib/internal-types.ts"],"names":[],"mappings":""}
@@ -1,75 +0,0 @@
1
- import { AuthError } from './errors'
2
-
3
- export type MFAEnrollTOTPParams = {
4
- /** The type of factor being enrolled. */
5
- factorType: 'totp'
6
- /** Domain which the user is enrolled with. */
7
- issuer?: string
8
- /** Human readable name assigned to the factor. */
9
- friendlyName?: string
10
- }
11
- export type MFAEnrollPhoneParams = {
12
- /** The type of factor being enrolled. */
13
- factorType: 'phone'
14
- /** Human readable name assigned to the factor. */
15
- friendlyName?: string
16
- /** Phone number associated with a factor. Number should conform to E.164 format */
17
- phone: string
18
- }
19
-
20
- export type AuthMFAEnrollTOTPResponse =
21
- | {
22
- data: {
23
- /** ID of the factor that was just enrolled (in an unverified state). */
24
- id: string
25
-
26
- /** Type of MFA factor.*/
27
- type: 'totp'
28
-
29
- /** TOTP enrollment information. */
30
- totp: {
31
- /** Contains a QR code encoding the authenticator URI. You can
32
- * convert it to a URL by prepending `data:image/svg+xml;utf-8,` to
33
- * the value. Avoid logging this value to the console. */
34
- qr_code: string
35
-
36
- /** The TOTP secret (also encoded in the QR code). Show this secret
37
- * in a password-style field to the user, in case they are unable to
38
- * scan the QR code. Avoid logging this value to the console. */
39
- secret: string
40
-
41
- /** The authenticator URI encoded within the QR code, should you need
42
- * to use it. Avoid loggin this value to the console. */
43
- uri: string
44
- }
45
- /** Friendly name of the factor, useful for distinguishing between factors **/
46
- friendly_name?: string
47
- }
48
- error: null
49
- }
50
- | {
51
- data: null
52
- error: AuthError
53
- }
54
-
55
- export type AuthMFAEnrollPhoneResponse =
56
- | {
57
- data: {
58
- /** ID of the factor that was just enrolled (in an unverified state). */
59
- id: string
60
-
61
- /** Type of MFA factor. */
62
- type: 'phone'
63
-
64
- /** Friendly name of the factor, useful for distinguishing between factors **/
65
- friendly_name?: string
66
-
67
- /** Phone number of the MFA factor in E.164 format. Used to send messages */
68
- phone: string
69
- }
70
- error: null
71
- }
72
- | {
73
- data: null
74
- error: AuthError
75
- }