@classic-homes/auth 0.1.23 → 0.1.25

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,4 +1,4 @@
1
- import { A as AuthState, U as User } from '../types-exFUQyBX.js';
1
+ import { A as AuthState, U as User } from '../types-DGN45Uih.js';
2
2
 
3
3
  /**
4
4
  * Auth Store
@@ -45,6 +45,14 @@ declare class AuthStore {
45
45
  * Clear auth state (logout).
46
46
  */
47
47
  logout(): void;
48
+ /**
49
+ * Logout with SSO support.
50
+ * Calls the logout API and returns the SSO logout URL if applicable.
51
+ * Clears local state regardless of API response.
52
+ */
53
+ logoutWithSSO(): Promise<{
54
+ ssoLogoutUrl?: string;
55
+ }>;
48
56
  /**
49
57
  * Check if user has a specific permission.
50
58
  */
@@ -85,6 +93,9 @@ declare const authActions: {
85
93
  updateTokens: (accessToken: string, refreshToken: string) => void;
86
94
  updateUser: (user: User) => void;
87
95
  logout: () => void;
96
+ logoutWithSSO: () => Promise<{
97
+ ssoLogoutUrl?: string;
98
+ }>;
88
99
  hasPermission: (permission: string) => boolean;
89
100
  hasRole: (role: string) => boolean;
90
101
  hasAnyRole: (roles: string[]) => boolean;