@authsome/ui-core 0.1.7 → 0.1.8
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.
- package/dist/adapters/index.d.mts +1 -1
- package/dist/adapters/index.d.ts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -0
- package/dist/index.mjs.map +1 -1
- package/dist/{provider-Du6Oe4tD.d.mts → provider-S9ZY5hsp.d.mts} +214 -1
- package/dist/{provider-Du6Oe4tD.d.ts → provider-S9ZY5hsp.d.ts} +214 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as AuthProvider, G as ProviderConfig, S as SignInRequest, E as AuthResponse, d as SignUpRequest, t as User, u as Session, w as SessionData, U as UpdateUserRequest, P as PasswordChangeRequest, e as PasswordResetRequest, f as PasswordResetConfirmRequest, O as OAuthSignInRequest, g as OAuthCallbackRequest, h as OAuthProvider, M as MagicLinkRequest, i as MagicLinkVerifyRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, n as TwoFactorMethod, o as PasskeyRegisterRequest, p as PasskeyCredential, q as PasskeyAuthRequest, R as RequestContext, C as CookieData, a as AuthError } from '../provider-
|
|
1
|
+
import { c as AuthProvider, G as ProviderConfig, S as SignInRequest, E as AuthResponse, d as SignUpRequest, t as User, u as Session, w as SessionData, U as UpdateUserRequest, P as PasswordChangeRequest, e as PasswordResetRequest, f as PasswordResetConfirmRequest, O as OAuthSignInRequest, g as OAuthCallbackRequest, h as OAuthProvider, M as MagicLinkRequest, i as MagicLinkVerifyRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, n as TwoFactorMethod, o as PasskeyRegisterRequest, p as PasskeyCredential, q as PasskeyAuthRequest, R as RequestContext, C as CookieData, a as AuthError } from '../provider-S9ZY5hsp.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Base auth provider implementation
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as AuthProvider, G as ProviderConfig, S as SignInRequest, E as AuthResponse, d as SignUpRequest, t as User, u as Session, w as SessionData, U as UpdateUserRequest, P as PasswordChangeRequest, e as PasswordResetRequest, f as PasswordResetConfirmRequest, O as OAuthSignInRequest, g as OAuthCallbackRequest, h as OAuthProvider, M as MagicLinkRequest, i as MagicLinkVerifyRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, n as TwoFactorMethod, o as PasskeyRegisterRequest, p as PasskeyCredential, q as PasskeyAuthRequest, R as RequestContext, C as CookieData, a as AuthError } from '../provider-
|
|
1
|
+
import { c as AuthProvider, G as ProviderConfig, S as SignInRequest, E as AuthResponse, d as SignUpRequest, t as User, u as Session, w as SessionData, U as UpdateUserRequest, P as PasswordChangeRequest, e as PasswordResetRequest, f as PasswordResetConfirmRequest, O as OAuthSignInRequest, g as OAuthCallbackRequest, h as OAuthProvider, M as MagicLinkRequest, i as MagicLinkVerifyRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, n as TwoFactorMethod, o as PasskeyRegisterRequest, p as PasskeyCredential, q as PasskeyAuthRequest, R as RequestContext, C as CookieData, a as AuthError } from '../provider-S9ZY5hsp.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Base auth provider implementation
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AuthErrorType, a as AuthError, V as ValidationError, C as CookieData, b as AuthContext, c as AuthProvider, S as SignInRequest, d as SignUpRequest, U as UpdateUserRequest, P as PasswordChangeRequest, e as PasswordResetRequest, f as PasswordResetConfirmRequest, O as OAuthSignInRequest, g as OAuthCallbackRequest, h as OAuthProvider, M as MagicLinkRequest, i as MagicLinkVerifyRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, n as TwoFactorMethod, o as PasskeyRegisterRequest, p as PasskeyCredential, q as PasskeyAuthRequest, r as Organization, s as OrganizationMembership, t as User, u as Session } from './provider-
|
|
2
|
-
export { E as AuthResponse, v as AuthState, B as FieldDefinition, z as FieldType, F as FieldValidation, x as OAuthConfig, G as ProviderConfig, R as RequestContext, w as SessionData, D as SignupFieldsResponse, y as TwoFactorConfig } from './provider-
|
|
1
|
+
import { A as AuthErrorType, a as AuthError, V as ValidationError, C as CookieData, b as AuthContext, c as AuthProvider, S as SignInRequest, d as SignUpRequest, U as UpdateUserRequest, P as PasswordChangeRequest, e as PasswordResetRequest, f as PasswordResetConfirmRequest, O as OAuthSignInRequest, g as OAuthCallbackRequest, h as OAuthProvider, M as MagicLinkRequest, i as MagicLinkVerifyRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, n as TwoFactorMethod, o as PasskeyRegisterRequest, p as PasskeyCredential, q as PasskeyAuthRequest, r as Organization, s as OrganizationMembership, t as User, u as Session } from './provider-S9ZY5hsp.mjs';
|
|
2
|
+
export { E as AuthResponse, v as AuthState, X as Device, L as EnrollMFAFactorRequest, B as FieldDefinition, z as FieldType, F as FieldValidation, Z as ListSessionsOptions, _ as ListSessionsResponse, Q as MFAChallengeRequest, W as MFAChallengeResponse, K as MFAFactor, x as OAuthConfig, G as ProviderConfig, R as RequestContext, J as ResendVerificationRequest, H as SendVerificationEmailRequest, w as SessionData, Y as SessionInfo, D as SignupFieldsResponse, y as TwoFactorConfig, I as VerifyEmailRequest, N as VerifyMFAFactorRequest } from './provider-S9ZY5hsp.mjs';
|
|
3
3
|
import { Storage, Observable, Unsubscribe } from './types/index.mjs';
|
|
4
4
|
export { Listener, LocalStorageAdapter, MemoryStorageAdapter, SessionStorageAdapter } from './types/index.mjs';
|
|
5
5
|
export { BaseAuthProvider } from './adapters/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AuthErrorType, a as AuthError, V as ValidationError, C as CookieData, b as AuthContext, c as AuthProvider, S as SignInRequest, d as SignUpRequest, U as UpdateUserRequest, P as PasswordChangeRequest, e as PasswordResetRequest, f as PasswordResetConfirmRequest, O as OAuthSignInRequest, g as OAuthCallbackRequest, h as OAuthProvider, M as MagicLinkRequest, i as MagicLinkVerifyRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, n as TwoFactorMethod, o as PasskeyRegisterRequest, p as PasskeyCredential, q as PasskeyAuthRequest, r as Organization, s as OrganizationMembership, t as User, u as Session } from './provider-
|
|
2
|
-
export { E as AuthResponse, v as AuthState, B as FieldDefinition, z as FieldType, F as FieldValidation, x as OAuthConfig, G as ProviderConfig, R as RequestContext, w as SessionData, D as SignupFieldsResponse, y as TwoFactorConfig } from './provider-
|
|
1
|
+
import { A as AuthErrorType, a as AuthError, V as ValidationError, C as CookieData, b as AuthContext, c as AuthProvider, S as SignInRequest, d as SignUpRequest, U as UpdateUserRequest, P as PasswordChangeRequest, e as PasswordResetRequest, f as PasswordResetConfirmRequest, O as OAuthSignInRequest, g as OAuthCallbackRequest, h as OAuthProvider, M as MagicLinkRequest, i as MagicLinkVerifyRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, n as TwoFactorMethod, o as PasskeyRegisterRequest, p as PasskeyCredential, q as PasskeyAuthRequest, r as Organization, s as OrganizationMembership, t as User, u as Session } from './provider-S9ZY5hsp.js';
|
|
2
|
+
export { E as AuthResponse, v as AuthState, X as Device, L as EnrollMFAFactorRequest, B as FieldDefinition, z as FieldType, F as FieldValidation, Z as ListSessionsOptions, _ as ListSessionsResponse, Q as MFAChallengeRequest, W as MFAChallengeResponse, K as MFAFactor, x as OAuthConfig, G as ProviderConfig, R as RequestContext, J as ResendVerificationRequest, H as SendVerificationEmailRequest, w as SessionData, Y as SessionInfo, D as SignupFieldsResponse, y as TwoFactorConfig, I as VerifyEmailRequest, N as VerifyMFAFactorRequest } from './provider-S9ZY5hsp.js';
|
|
3
3
|
import { Storage, Observable, Unsubscribe } from './types/index.js';
|
|
4
4
|
export { Listener, LocalStorageAdapter, MemoryStorageAdapter, SessionStorageAdapter } from './types/index.js';
|
|
5
5
|
export { BaseAuthProvider } from './adapters/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1461,6 +1461,8 @@ var simpleSignInFlow = {
|
|
|
1461
1461
|
initialStep: "email_password_sign_in" /* EMAIL_PASSWORD_SIGN_IN */,
|
|
1462
1462
|
allowedSteps: [
|
|
1463
1463
|
"email_password_sign_in" /* EMAIL_PASSWORD_SIGN_IN */,
|
|
1464
|
+
"email_verification_required" /* EMAIL_VERIFICATION_REQUIRED */,
|
|
1465
|
+
"email_verification_sent" /* EMAIL_VERIFICATION_SENT */,
|
|
1464
1466
|
"password_reset_request" /* PASSWORD_RESET_REQUEST */,
|
|
1465
1467
|
"password_reset_sent" /* PASSWORD_RESET_SENT */,
|
|
1466
1468
|
"success" /* SUCCESS */,
|
|
@@ -1471,6 +1473,14 @@ var simpleSignInFlow = {
|
|
|
1471
1473
|
onSuccess: "success" /* SUCCESS */,
|
|
1472
1474
|
onError: "email_password_sign_in" /* EMAIL_PASSWORD_SIGN_IN */
|
|
1473
1475
|
},
|
|
1476
|
+
["email_verification_required" /* EMAIL_VERIFICATION_REQUIRED */]: {
|
|
1477
|
+
onSuccess: "email_verification_sent" /* EMAIL_VERIFICATION_SENT */,
|
|
1478
|
+
onError: "email_verification_required" /* EMAIL_VERIFICATION_REQUIRED */
|
|
1479
|
+
},
|
|
1480
|
+
["email_verification_sent" /* EMAIL_VERIFICATION_SENT */]: {
|
|
1481
|
+
onSuccess: "email_password_sign_in" /* EMAIL_PASSWORD_SIGN_IN */,
|
|
1482
|
+
onError: "email_verification_required" /* EMAIL_VERIFICATION_REQUIRED */
|
|
1483
|
+
},
|
|
1474
1484
|
["password_reset_request" /* PASSWORD_RESET_REQUEST */]: {
|
|
1475
1485
|
onSuccess: "password_reset_sent" /* PASSWORD_RESET_SENT */,
|
|
1476
1486
|
onBack: "email_password_sign_in" /* EMAIL_PASSWORD_SIGN_IN */
|
|
@@ -1486,6 +1496,8 @@ var signInWithMFAFlow = {
|
|
|
1486
1496
|
initialStep: "email_password_sign_in" /* EMAIL_PASSWORD_SIGN_IN */,
|
|
1487
1497
|
allowedSteps: [
|
|
1488
1498
|
"email_password_sign_in" /* EMAIL_PASSWORD_SIGN_IN */,
|
|
1499
|
+
"email_verification_required" /* EMAIL_VERIFICATION_REQUIRED */,
|
|
1500
|
+
"email_verification_sent" /* EMAIL_VERIFICATION_SENT */,
|
|
1489
1501
|
"mfa_required" /* MFA_REQUIRED */,
|
|
1490
1502
|
"mfa_select_method" /* MFA_SELECT_METHOD */,
|
|
1491
1503
|
"mfa_verify" /* MFA_VERIFY */,
|
|
@@ -1505,6 +1517,14 @@ var signInWithMFAFlow = {
|
|
|
1505
1517
|
}
|
|
1506
1518
|
]
|
|
1507
1519
|
},
|
|
1520
|
+
["email_verification_required" /* EMAIL_VERIFICATION_REQUIRED */]: {
|
|
1521
|
+
onSuccess: "email_verification_sent" /* EMAIL_VERIFICATION_SENT */,
|
|
1522
|
+
onError: "email_verification_required" /* EMAIL_VERIFICATION_REQUIRED */
|
|
1523
|
+
},
|
|
1524
|
+
["email_verification_sent" /* EMAIL_VERIFICATION_SENT */]: {
|
|
1525
|
+
onSuccess: "email_password_sign_in" /* EMAIL_PASSWORD_SIGN_IN */,
|
|
1526
|
+
onError: "email_verification_required" /* EMAIL_VERIFICATION_REQUIRED */
|
|
1527
|
+
},
|
|
1508
1528
|
["mfa_required" /* MFA_REQUIRED */]: {
|
|
1509
1529
|
onSuccess: "mfa_verify" /* MFA_VERIFY */,
|
|
1510
1530
|
conditions: [
|