@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
|
@@ -405,6 +405,123 @@ interface CookieData {
|
|
|
405
405
|
expires?: Date;
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* Email verification request
|
|
410
|
+
*/
|
|
411
|
+
interface SendVerificationEmailRequest {
|
|
412
|
+
email: string;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Verify email request
|
|
416
|
+
*/
|
|
417
|
+
interface VerifyEmailRequest {
|
|
418
|
+
token: string;
|
|
419
|
+
code?: string;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Resend verification email request
|
|
423
|
+
*/
|
|
424
|
+
interface ResendVerificationRequest {
|
|
425
|
+
email: string;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* MFA Factor representation
|
|
429
|
+
*/
|
|
430
|
+
interface MFAFactor {
|
|
431
|
+
id: string;
|
|
432
|
+
type: string;
|
|
433
|
+
name: string;
|
|
434
|
+
status: string;
|
|
435
|
+
createdAt: Date;
|
|
436
|
+
metadata?: Record<string, unknown>;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Enroll MFA factor request
|
|
440
|
+
*/
|
|
441
|
+
interface EnrollMFAFactorRequest {
|
|
442
|
+
type: string;
|
|
443
|
+
name: string;
|
|
444
|
+
metadata?: Record<string, unknown>;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Verify MFA factor request
|
|
448
|
+
*/
|
|
449
|
+
interface VerifyMFAFactorRequest {
|
|
450
|
+
factorId: string;
|
|
451
|
+
code: string;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* MFA challenge request
|
|
455
|
+
*/
|
|
456
|
+
interface MFAChallengeRequest {
|
|
457
|
+
userId?: string;
|
|
458
|
+
factorTypes?: string[];
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* MFA challenge response
|
|
462
|
+
*/
|
|
463
|
+
interface MFAChallengeResponse {
|
|
464
|
+
challengeId: string;
|
|
465
|
+
availableFactors: MFAFactor[];
|
|
466
|
+
expiresAt: Date;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Device information
|
|
470
|
+
*/
|
|
471
|
+
interface Device {
|
|
472
|
+
id: string;
|
|
473
|
+
userId: string;
|
|
474
|
+
name?: string;
|
|
475
|
+
type?: string;
|
|
476
|
+
lastUsedAt: Date;
|
|
477
|
+
ipAddress?: string;
|
|
478
|
+
userAgent?: string;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Extended session information with device and location
|
|
482
|
+
*/
|
|
483
|
+
interface SessionInfo extends Session {
|
|
484
|
+
device?: Device;
|
|
485
|
+
location?: string;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Options for listing sessions with filtering and pagination
|
|
489
|
+
*/
|
|
490
|
+
interface ListSessionsOptions {
|
|
491
|
+
/** Filter by active sessions only */
|
|
492
|
+
active?: boolean;
|
|
493
|
+
/** Filter by IP address */
|
|
494
|
+
ipAddress?: string;
|
|
495
|
+
/** Filter by user agent */
|
|
496
|
+
userAgent?: string;
|
|
497
|
+
/** Filter sessions created after this date (ISO string or Date) */
|
|
498
|
+
createdFrom?: string | Date;
|
|
499
|
+
/** Filter sessions created before this date (ISO string or Date) */
|
|
500
|
+
createdTo?: string | Date;
|
|
501
|
+
/** Field to sort by (e.g., 'createdAt', 'lastUsedAt') */
|
|
502
|
+
sortBy?: string;
|
|
503
|
+
/** Sort order */
|
|
504
|
+
sortOrder?: 'asc' | 'desc';
|
|
505
|
+
/** Maximum number of sessions to return (default: 50) */
|
|
506
|
+
limit?: number;
|
|
507
|
+
/** Number of sessions to skip for pagination (default: 0) */
|
|
508
|
+
offset?: number;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Paginated response for session listing
|
|
512
|
+
*/
|
|
513
|
+
interface ListSessionsResponse {
|
|
514
|
+
/** Array of session information */
|
|
515
|
+
sessions: SessionInfo[];
|
|
516
|
+
/** Total number of sessions matching the filter */
|
|
517
|
+
total: number;
|
|
518
|
+
/** Current page number */
|
|
519
|
+
page: number;
|
|
520
|
+
/** Total number of pages */
|
|
521
|
+
totalPages: number;
|
|
522
|
+
/** Number of sessions per page */
|
|
523
|
+
limit: number;
|
|
524
|
+
}
|
|
408
525
|
/**
|
|
409
526
|
* Auth provider interface
|
|
410
527
|
*
|
|
@@ -569,6 +686,102 @@ interface AuthProvider {
|
|
|
569
686
|
* Optional - only needed for edge runtime environments
|
|
570
687
|
*/
|
|
571
688
|
clearContext?(): void;
|
|
689
|
+
/**
|
|
690
|
+
* Send verification email to user
|
|
691
|
+
* Optional - only available if adapter supports email verification
|
|
692
|
+
*/
|
|
693
|
+
sendVerificationEmail?(request: SendVerificationEmailRequest): Promise<void>;
|
|
694
|
+
/**
|
|
695
|
+
* Verify email with token/code
|
|
696
|
+
* Optional - only available if adapter supports email verification
|
|
697
|
+
*/
|
|
698
|
+
verifyEmail?(request: VerifyEmailRequest): Promise<void>;
|
|
699
|
+
/**
|
|
700
|
+
* Resend verification email
|
|
701
|
+
* Optional - only available if adapter supports email verification
|
|
702
|
+
*/
|
|
703
|
+
resendVerificationEmail?(request: ResendVerificationRequest): Promise<void>;
|
|
704
|
+
/**
|
|
705
|
+
* Enroll a new MFA factor
|
|
706
|
+
* Optional - only available if adapter supports advanced MFA
|
|
707
|
+
*/
|
|
708
|
+
enrollMFAFactor?(request: EnrollMFAFactorRequest): Promise<MFAFactor>;
|
|
709
|
+
/**
|
|
710
|
+
* List all enrolled MFA factors
|
|
711
|
+
* Optional - only available if adapter supports advanced MFA
|
|
712
|
+
*/
|
|
713
|
+
listMFAFactors?(): Promise<MFAFactor[]>;
|
|
714
|
+
/**
|
|
715
|
+
* Get specific MFA factor details
|
|
716
|
+
* Optional - only available if adapter supports advanced MFA
|
|
717
|
+
*/
|
|
718
|
+
getMFAFactor?(factorId: string): Promise<MFAFactor>;
|
|
719
|
+
/**
|
|
720
|
+
* Delete an MFA factor
|
|
721
|
+
* Optional - only available if adapter supports advanced MFA
|
|
722
|
+
*/
|
|
723
|
+
deleteMFAFactor?(factorId: string): Promise<void>;
|
|
724
|
+
/**
|
|
725
|
+
* Verify an MFA factor
|
|
726
|
+
* Optional - only available if adapter supports advanced MFA
|
|
727
|
+
*/
|
|
728
|
+
verifyMFAFactor?(request: VerifyMFAFactorRequest): Promise<void>;
|
|
729
|
+
/**
|
|
730
|
+
* Initiate MFA challenge
|
|
731
|
+
* Optional - only available if adapter supports advanced MFA
|
|
732
|
+
*/
|
|
733
|
+
initiateMFAChallenge?(request: MFAChallengeRequest): Promise<MFAChallengeResponse>;
|
|
734
|
+
/**
|
|
735
|
+
* Get MFA status for current user
|
|
736
|
+
* Optional - only available if adapter supports advanced MFA
|
|
737
|
+
*/
|
|
738
|
+
getMFAStatus?(): Promise<{
|
|
739
|
+
enabled: boolean;
|
|
740
|
+
factors: MFAFactor[];
|
|
741
|
+
}>;
|
|
742
|
+
/**
|
|
743
|
+
* List all devices for current user
|
|
744
|
+
* Optional - only available if adapter supports device management
|
|
745
|
+
*/
|
|
746
|
+
listDevices?(): Promise<Device[]>;
|
|
747
|
+
/**
|
|
748
|
+
* Revoke a specific device
|
|
749
|
+
* Optional - only available if adapter supports device management
|
|
750
|
+
*/
|
|
751
|
+
revokeDevice?(deviceId: string): Promise<void>;
|
|
752
|
+
/**
|
|
753
|
+
* Trust a device for MFA
|
|
754
|
+
* Optional - only available if adapter supports device management
|
|
755
|
+
*/
|
|
756
|
+
trustDevice?(deviceId: string, name?: string): Promise<void>;
|
|
757
|
+
/**
|
|
758
|
+
* List all trusted devices
|
|
759
|
+
* Optional - only available if adapter supports device management
|
|
760
|
+
*/
|
|
761
|
+
listTrustedDevices?(): Promise<Device[]>;
|
|
762
|
+
/**
|
|
763
|
+
* Revoke trust from a device
|
|
764
|
+
* Optional - only available if adapter supports device management
|
|
765
|
+
*/
|
|
766
|
+
revokeTrustedDevice?(deviceId: string): Promise<void>;
|
|
767
|
+
/**
|
|
768
|
+
* List sessions with optional filtering and pagination
|
|
769
|
+
* Optional - only available if adapter supports session management
|
|
770
|
+
*
|
|
771
|
+
* @param options - Optional filter and pagination parameters
|
|
772
|
+
* @returns Paginated session list with metadata
|
|
773
|
+
*/
|
|
774
|
+
listSessions?(options?: ListSessionsOptions): Promise<ListSessionsResponse>;
|
|
775
|
+
/**
|
|
776
|
+
* Revoke a specific session
|
|
777
|
+
* Optional - only available if adapter supports session management
|
|
778
|
+
*/
|
|
779
|
+
revokeSession?(sessionId: string): Promise<void>;
|
|
780
|
+
/**
|
|
781
|
+
* Revoke all sessions except current
|
|
782
|
+
* Optional - only available if adapter supports session management
|
|
783
|
+
*/
|
|
784
|
+
revokeAllSessions?(): Promise<void>;
|
|
572
785
|
}
|
|
573
786
|
|
|
574
|
-
export { AuthErrorType as A, type FieldDefinition as B, type CookieData as C, type SignupFieldsResponse as D, type AuthResponse as E, type FieldValidation as F, type ProviderConfig as G, type MagicLinkRequest as M, type OAuthSignInRequest as O, type PasswordChangeRequest as P, type RequestContext as R, type SignInRequest as S, type TwoFactorSetupRequest as T, type UpdateUserRequest as U, type ValidationError as V, AuthError as a, type AuthContext as b, type AuthProvider as c, type SignUpRequest as d, type PasswordResetRequest as e, type PasswordResetConfirmRequest as f, type OAuthCallbackRequest as g, OAuthProvider as h, type MagicLinkVerifyRequest as i, type PhoneAuthRequest as j, type PhoneVerifyRequest as k, type TwoFactorSetupResponse as l, type TwoFactorVerifyRequest as m, TwoFactorMethod as n, type PasskeyRegisterRequest as o, type PasskeyCredential as p, type PasskeyAuthRequest as q, type Organization as r, type OrganizationMembership as s, type User as t, type Session as u, AuthState as v, type SessionData as w, type OAuthConfig as x, type TwoFactorConfig as y, type FieldType as z };
|
|
787
|
+
export { AuthErrorType as A, type FieldDefinition as B, type CookieData as C, type SignupFieldsResponse as D, type AuthResponse as E, type FieldValidation as F, type ProviderConfig as G, type SendVerificationEmailRequest as H, type VerifyEmailRequest as I, type ResendVerificationRequest as J, type MFAFactor as K, type EnrollMFAFactorRequest as L, type MagicLinkRequest as M, type VerifyMFAFactorRequest as N, type OAuthSignInRequest as O, type PasswordChangeRequest as P, type MFAChallengeRequest as Q, type RequestContext as R, type SignInRequest as S, type TwoFactorSetupRequest as T, type UpdateUserRequest as U, type ValidationError as V, type MFAChallengeResponse as W, type Device as X, type SessionInfo as Y, type ListSessionsOptions as Z, type ListSessionsResponse as _, AuthError as a, type AuthContext as b, type AuthProvider as c, type SignUpRequest as d, type PasswordResetRequest as e, type PasswordResetConfirmRequest as f, type OAuthCallbackRequest as g, OAuthProvider as h, type MagicLinkVerifyRequest as i, type PhoneAuthRequest as j, type PhoneVerifyRequest as k, type TwoFactorSetupResponse as l, type TwoFactorVerifyRequest as m, TwoFactorMethod as n, type PasskeyRegisterRequest as o, type PasskeyCredential as p, type PasskeyAuthRequest as q, type Organization as r, type OrganizationMembership as s, type User as t, type Session as u, AuthState as v, type SessionData as w, type OAuthConfig as x, type TwoFactorConfig as y, type FieldType as z };
|
|
@@ -405,6 +405,123 @@ interface CookieData {
|
|
|
405
405
|
expires?: Date;
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* Email verification request
|
|
410
|
+
*/
|
|
411
|
+
interface SendVerificationEmailRequest {
|
|
412
|
+
email: string;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Verify email request
|
|
416
|
+
*/
|
|
417
|
+
interface VerifyEmailRequest {
|
|
418
|
+
token: string;
|
|
419
|
+
code?: string;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Resend verification email request
|
|
423
|
+
*/
|
|
424
|
+
interface ResendVerificationRequest {
|
|
425
|
+
email: string;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* MFA Factor representation
|
|
429
|
+
*/
|
|
430
|
+
interface MFAFactor {
|
|
431
|
+
id: string;
|
|
432
|
+
type: string;
|
|
433
|
+
name: string;
|
|
434
|
+
status: string;
|
|
435
|
+
createdAt: Date;
|
|
436
|
+
metadata?: Record<string, unknown>;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Enroll MFA factor request
|
|
440
|
+
*/
|
|
441
|
+
interface EnrollMFAFactorRequest {
|
|
442
|
+
type: string;
|
|
443
|
+
name: string;
|
|
444
|
+
metadata?: Record<string, unknown>;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Verify MFA factor request
|
|
448
|
+
*/
|
|
449
|
+
interface VerifyMFAFactorRequest {
|
|
450
|
+
factorId: string;
|
|
451
|
+
code: string;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* MFA challenge request
|
|
455
|
+
*/
|
|
456
|
+
interface MFAChallengeRequest {
|
|
457
|
+
userId?: string;
|
|
458
|
+
factorTypes?: string[];
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* MFA challenge response
|
|
462
|
+
*/
|
|
463
|
+
interface MFAChallengeResponse {
|
|
464
|
+
challengeId: string;
|
|
465
|
+
availableFactors: MFAFactor[];
|
|
466
|
+
expiresAt: Date;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Device information
|
|
470
|
+
*/
|
|
471
|
+
interface Device {
|
|
472
|
+
id: string;
|
|
473
|
+
userId: string;
|
|
474
|
+
name?: string;
|
|
475
|
+
type?: string;
|
|
476
|
+
lastUsedAt: Date;
|
|
477
|
+
ipAddress?: string;
|
|
478
|
+
userAgent?: string;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Extended session information with device and location
|
|
482
|
+
*/
|
|
483
|
+
interface SessionInfo extends Session {
|
|
484
|
+
device?: Device;
|
|
485
|
+
location?: string;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Options for listing sessions with filtering and pagination
|
|
489
|
+
*/
|
|
490
|
+
interface ListSessionsOptions {
|
|
491
|
+
/** Filter by active sessions only */
|
|
492
|
+
active?: boolean;
|
|
493
|
+
/** Filter by IP address */
|
|
494
|
+
ipAddress?: string;
|
|
495
|
+
/** Filter by user agent */
|
|
496
|
+
userAgent?: string;
|
|
497
|
+
/** Filter sessions created after this date (ISO string or Date) */
|
|
498
|
+
createdFrom?: string | Date;
|
|
499
|
+
/** Filter sessions created before this date (ISO string or Date) */
|
|
500
|
+
createdTo?: string | Date;
|
|
501
|
+
/** Field to sort by (e.g., 'createdAt', 'lastUsedAt') */
|
|
502
|
+
sortBy?: string;
|
|
503
|
+
/** Sort order */
|
|
504
|
+
sortOrder?: 'asc' | 'desc';
|
|
505
|
+
/** Maximum number of sessions to return (default: 50) */
|
|
506
|
+
limit?: number;
|
|
507
|
+
/** Number of sessions to skip for pagination (default: 0) */
|
|
508
|
+
offset?: number;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Paginated response for session listing
|
|
512
|
+
*/
|
|
513
|
+
interface ListSessionsResponse {
|
|
514
|
+
/** Array of session information */
|
|
515
|
+
sessions: SessionInfo[];
|
|
516
|
+
/** Total number of sessions matching the filter */
|
|
517
|
+
total: number;
|
|
518
|
+
/** Current page number */
|
|
519
|
+
page: number;
|
|
520
|
+
/** Total number of pages */
|
|
521
|
+
totalPages: number;
|
|
522
|
+
/** Number of sessions per page */
|
|
523
|
+
limit: number;
|
|
524
|
+
}
|
|
408
525
|
/**
|
|
409
526
|
* Auth provider interface
|
|
410
527
|
*
|
|
@@ -569,6 +686,102 @@ interface AuthProvider {
|
|
|
569
686
|
* Optional - only needed for edge runtime environments
|
|
570
687
|
*/
|
|
571
688
|
clearContext?(): void;
|
|
689
|
+
/**
|
|
690
|
+
* Send verification email to user
|
|
691
|
+
* Optional - only available if adapter supports email verification
|
|
692
|
+
*/
|
|
693
|
+
sendVerificationEmail?(request: SendVerificationEmailRequest): Promise<void>;
|
|
694
|
+
/**
|
|
695
|
+
* Verify email with token/code
|
|
696
|
+
* Optional - only available if adapter supports email verification
|
|
697
|
+
*/
|
|
698
|
+
verifyEmail?(request: VerifyEmailRequest): Promise<void>;
|
|
699
|
+
/**
|
|
700
|
+
* Resend verification email
|
|
701
|
+
* Optional - only available if adapter supports email verification
|
|
702
|
+
*/
|
|
703
|
+
resendVerificationEmail?(request: ResendVerificationRequest): Promise<void>;
|
|
704
|
+
/**
|
|
705
|
+
* Enroll a new MFA factor
|
|
706
|
+
* Optional - only available if adapter supports advanced MFA
|
|
707
|
+
*/
|
|
708
|
+
enrollMFAFactor?(request: EnrollMFAFactorRequest): Promise<MFAFactor>;
|
|
709
|
+
/**
|
|
710
|
+
* List all enrolled MFA factors
|
|
711
|
+
* Optional - only available if adapter supports advanced MFA
|
|
712
|
+
*/
|
|
713
|
+
listMFAFactors?(): Promise<MFAFactor[]>;
|
|
714
|
+
/**
|
|
715
|
+
* Get specific MFA factor details
|
|
716
|
+
* Optional - only available if adapter supports advanced MFA
|
|
717
|
+
*/
|
|
718
|
+
getMFAFactor?(factorId: string): Promise<MFAFactor>;
|
|
719
|
+
/**
|
|
720
|
+
* Delete an MFA factor
|
|
721
|
+
* Optional - only available if adapter supports advanced MFA
|
|
722
|
+
*/
|
|
723
|
+
deleteMFAFactor?(factorId: string): Promise<void>;
|
|
724
|
+
/**
|
|
725
|
+
* Verify an MFA factor
|
|
726
|
+
* Optional - only available if adapter supports advanced MFA
|
|
727
|
+
*/
|
|
728
|
+
verifyMFAFactor?(request: VerifyMFAFactorRequest): Promise<void>;
|
|
729
|
+
/**
|
|
730
|
+
* Initiate MFA challenge
|
|
731
|
+
* Optional - only available if adapter supports advanced MFA
|
|
732
|
+
*/
|
|
733
|
+
initiateMFAChallenge?(request: MFAChallengeRequest): Promise<MFAChallengeResponse>;
|
|
734
|
+
/**
|
|
735
|
+
* Get MFA status for current user
|
|
736
|
+
* Optional - only available if adapter supports advanced MFA
|
|
737
|
+
*/
|
|
738
|
+
getMFAStatus?(): Promise<{
|
|
739
|
+
enabled: boolean;
|
|
740
|
+
factors: MFAFactor[];
|
|
741
|
+
}>;
|
|
742
|
+
/**
|
|
743
|
+
* List all devices for current user
|
|
744
|
+
* Optional - only available if adapter supports device management
|
|
745
|
+
*/
|
|
746
|
+
listDevices?(): Promise<Device[]>;
|
|
747
|
+
/**
|
|
748
|
+
* Revoke a specific device
|
|
749
|
+
* Optional - only available if adapter supports device management
|
|
750
|
+
*/
|
|
751
|
+
revokeDevice?(deviceId: string): Promise<void>;
|
|
752
|
+
/**
|
|
753
|
+
* Trust a device for MFA
|
|
754
|
+
* Optional - only available if adapter supports device management
|
|
755
|
+
*/
|
|
756
|
+
trustDevice?(deviceId: string, name?: string): Promise<void>;
|
|
757
|
+
/**
|
|
758
|
+
* List all trusted devices
|
|
759
|
+
* Optional - only available if adapter supports device management
|
|
760
|
+
*/
|
|
761
|
+
listTrustedDevices?(): Promise<Device[]>;
|
|
762
|
+
/**
|
|
763
|
+
* Revoke trust from a device
|
|
764
|
+
* Optional - only available if adapter supports device management
|
|
765
|
+
*/
|
|
766
|
+
revokeTrustedDevice?(deviceId: string): Promise<void>;
|
|
767
|
+
/**
|
|
768
|
+
* List sessions with optional filtering and pagination
|
|
769
|
+
* Optional - only available if adapter supports session management
|
|
770
|
+
*
|
|
771
|
+
* @param options - Optional filter and pagination parameters
|
|
772
|
+
* @returns Paginated session list with metadata
|
|
773
|
+
*/
|
|
774
|
+
listSessions?(options?: ListSessionsOptions): Promise<ListSessionsResponse>;
|
|
775
|
+
/**
|
|
776
|
+
* Revoke a specific session
|
|
777
|
+
* Optional - only available if adapter supports session management
|
|
778
|
+
*/
|
|
779
|
+
revokeSession?(sessionId: string): Promise<void>;
|
|
780
|
+
/**
|
|
781
|
+
* Revoke all sessions except current
|
|
782
|
+
* Optional - only available if adapter supports session management
|
|
783
|
+
*/
|
|
784
|
+
revokeAllSessions?(): Promise<void>;
|
|
572
785
|
}
|
|
573
786
|
|
|
574
|
-
export { AuthErrorType as A, type FieldDefinition as B, type CookieData as C, type SignupFieldsResponse as D, type AuthResponse as E, type FieldValidation as F, type ProviderConfig as G, type MagicLinkRequest as M, type OAuthSignInRequest as O, type PasswordChangeRequest as P, type RequestContext as R, type SignInRequest as S, type TwoFactorSetupRequest as T, type UpdateUserRequest as U, type ValidationError as V, AuthError as a, type AuthContext as b, type AuthProvider as c, type SignUpRequest as d, type PasswordResetRequest as e, type PasswordResetConfirmRequest as f, type OAuthCallbackRequest as g, OAuthProvider as h, type MagicLinkVerifyRequest as i, type PhoneAuthRequest as j, type PhoneVerifyRequest as k, type TwoFactorSetupResponse as l, type TwoFactorVerifyRequest as m, TwoFactorMethod as n, type PasskeyRegisterRequest as o, type PasskeyCredential as p, type PasskeyAuthRequest as q, type Organization as r, type OrganizationMembership as s, type User as t, type Session as u, AuthState as v, type SessionData as w, type OAuthConfig as x, type TwoFactorConfig as y, type FieldType as z };
|
|
787
|
+
export { AuthErrorType as A, type FieldDefinition as B, type CookieData as C, type SignupFieldsResponse as D, type AuthResponse as E, type FieldValidation as F, type ProviderConfig as G, type SendVerificationEmailRequest as H, type VerifyEmailRequest as I, type ResendVerificationRequest as J, type MFAFactor as K, type EnrollMFAFactorRequest as L, type MagicLinkRequest as M, type VerifyMFAFactorRequest as N, type OAuthSignInRequest as O, type PasswordChangeRequest as P, type MFAChallengeRequest as Q, type RequestContext as R, type SignInRequest as S, type TwoFactorSetupRequest as T, type UpdateUserRequest as U, type ValidationError as V, type MFAChallengeResponse as W, type Device as X, type SessionInfo as Y, type ListSessionsOptions as Z, type ListSessionsResponse as _, AuthError as a, type AuthContext as b, type AuthProvider as c, type SignUpRequest as d, type PasswordResetRequest as e, type PasswordResetConfirmRequest as f, type OAuthCallbackRequest as g, OAuthProvider as h, type MagicLinkVerifyRequest as i, type PhoneAuthRequest as j, type PhoneVerifyRequest as k, type TwoFactorSetupResponse as l, type TwoFactorVerifyRequest as m, TwoFactorMethod as n, type PasskeyRegisterRequest as o, type PasskeyCredential as p, type PasskeyAuthRequest as q, type Organization as r, type OrganizationMembership as s, type User as t, type Session as u, AuthState as v, type SessionData as w, type OAuthConfig as x, type TwoFactorConfig as y, type FieldType as z };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as AuthContext, a as AuthError, A as AuthErrorType, c as AuthProvider, E as AuthResponse, v as AuthState, C as CookieData, B as FieldDefinition, z as FieldType, F as FieldValidation, M as MagicLinkRequest, i as MagicLinkVerifyRequest, g as OAuthCallbackRequest, x as OAuthConfig, h as OAuthProvider, O as OAuthSignInRequest, r as Organization, s as OrganizationMembership, q as PasskeyAuthRequest, p as PasskeyCredential, o as PasskeyRegisterRequest, P as PasswordChangeRequest, f as PasswordResetConfirmRequest, e as PasswordResetRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, G as ProviderConfig, R as RequestContext, u as Session, w as SessionData, S as SignInRequest, d as SignUpRequest, D as SignupFieldsResponse, y as TwoFactorConfig, n as TwoFactorMethod, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, U as UpdateUserRequest, t as User, V as ValidationError } from '../provider-
|
|
1
|
+
export { b as AuthContext, a as AuthError, A as AuthErrorType, c as AuthProvider, E as AuthResponse, v as AuthState, C as CookieData, 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, M as MagicLinkRequest, i as MagicLinkVerifyRequest, g as OAuthCallbackRequest, x as OAuthConfig, h as OAuthProvider, O as OAuthSignInRequest, r as Organization, s as OrganizationMembership, q as PasskeyAuthRequest, p as PasskeyCredential, o as PasskeyRegisterRequest, P as PasswordChangeRequest, f as PasswordResetConfirmRequest, e as PasswordResetRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, G as ProviderConfig, R as RequestContext, J as ResendVerificationRequest, H as SendVerificationEmailRequest, u as Session, w as SessionData, Y as SessionInfo, S as SignInRequest, d as SignUpRequest, D as SignupFieldsResponse, y as TwoFactorConfig, n as TwoFactorMethod, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, U as UpdateUserRequest, t as User, V as ValidationError, I as VerifyEmailRequest, N as VerifyMFAFactorRequest } from '../provider-S9ZY5hsp.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Storage abstraction for auth tokens and data
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as AuthContext, a as AuthError, A as AuthErrorType, c as AuthProvider, E as AuthResponse, v as AuthState, C as CookieData, B as FieldDefinition, z as FieldType, F as FieldValidation, M as MagicLinkRequest, i as MagicLinkVerifyRequest, g as OAuthCallbackRequest, x as OAuthConfig, h as OAuthProvider, O as OAuthSignInRequest, r as Organization, s as OrganizationMembership, q as PasskeyAuthRequest, p as PasskeyCredential, o as PasskeyRegisterRequest, P as PasswordChangeRequest, f as PasswordResetConfirmRequest, e as PasswordResetRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, G as ProviderConfig, R as RequestContext, u as Session, w as SessionData, S as SignInRequest, d as SignUpRequest, D as SignupFieldsResponse, y as TwoFactorConfig, n as TwoFactorMethod, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, U as UpdateUserRequest, t as User, V as ValidationError } from '../provider-
|
|
1
|
+
export { b as AuthContext, a as AuthError, A as AuthErrorType, c as AuthProvider, E as AuthResponse, v as AuthState, C as CookieData, 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, M as MagicLinkRequest, i as MagicLinkVerifyRequest, g as OAuthCallbackRequest, x as OAuthConfig, h as OAuthProvider, O as OAuthSignInRequest, r as Organization, s as OrganizationMembership, q as PasskeyAuthRequest, p as PasskeyCredential, o as PasskeyRegisterRequest, P as PasswordChangeRequest, f as PasswordResetConfirmRequest, e as PasswordResetRequest, j as PhoneAuthRequest, k as PhoneVerifyRequest, G as ProviderConfig, R as RequestContext, J as ResendVerificationRequest, H as SendVerificationEmailRequest, u as Session, w as SessionData, Y as SessionInfo, S as SignInRequest, d as SignUpRequest, D as SignupFieldsResponse, y as TwoFactorConfig, n as TwoFactorMethod, T as TwoFactorSetupRequest, l as TwoFactorSetupResponse, m as TwoFactorVerifyRequest, U as UpdateUserRequest, t as User, V as ValidationError, I as VerifyEmailRequest, N as VerifyMFAFactorRequest } from '../provider-S9ZY5hsp.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Storage abstraction for auth tokens and data
|