spry-apps-dropdown 3.0.4 → 3.1.0

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.
@@ -34,11 +34,13 @@ export declare function saveAccountsState(state: AccountsState): void;
34
34
  export declare function saveAccounts(accounts: StoredAccount[], activeAccountId?: string | null): void;
35
35
  /**
36
36
  * Add a new account to storage
37
- * Returns the generated account ID
37
+ * Returns the account ID (existing ID if deduped, new ID if fresh)
38
38
  */
39
39
  export declare function addAccount(user: OIDCUser): string;
40
40
  /**
41
- * Remove an account from storage
41
+ * Remove an account from storage.
42
+ * Also removes any duplicate entries sharing the same sub or email
43
+ * to prevent ghost accounts from surviving removal.
42
44
  */
43
45
  export declare function removeAccount(accountId: string): void;
44
46
  /**
@@ -70,35 +72,3 @@ export declare function clearAllAccounts(): void;
70
72
  * Useful for debugging or display
71
73
  */
72
74
  export declare function getAccountMetadata(accountId: string): StoredAccountMetadata | null;
73
- /**
74
- * Set flag indicating add account flow is in progress
75
- */
76
- export declare function setAddAccountInProgress(inProgress: boolean): void;
77
- /**
78
- * Check if add account flow is in progress
79
- */
80
- export declare function isAddAccountInProgress(): boolean;
81
- /**
82
- * Save return URL for redirect flow
83
- */
84
- export declare function setReturnUrl(url: string): void;
85
- /**
86
- * Get return URL from redirect flow
87
- */
88
- export declare function getReturnUrl(): string | null;
89
- /**
90
- * Clear return URL
91
- */
92
- export declare function clearReturnUrl(): void;
93
- /**
94
- * Save current user temporarily before redirect
95
- */
96
- export declare function saveTempCurrentUser(user: OIDCUser): void;
97
- /**
98
- * Get temporarily saved current user
99
- */
100
- export declare function getTempCurrentUser(): OIDCUser | null;
101
- /**
102
- * Clear temporarily saved current user
103
- */
104
- export declare function clearTempCurrentUser(): void;
@@ -9,9 +9,6 @@
9
9
  export declare const STORAGE_KEYS: {
10
10
  readonly ACCOUNTS: "spry_accounts";
11
11
  readonly BRIDGE_ACCOUNTS: "spry_accounts_shared_state";
12
- readonly ADD_ACCOUNT_IN_PROGRESS: "spry_add_account_in_progress";
13
- readonly RETURN_URL: "spry_return_url";
14
- readonly TEMP_CURRENT_USER: "spry_temp_current_user";
15
12
  };
16
13
  /**
17
14
  * Token validation and refresh configuration
@@ -31,7 +28,6 @@ export declare const ERROR_MESSAGES: {
31
28
  readonly SIGNIN_REDIRECT_FAILED: "Failed to initiate sign-in redirect";
32
29
  readonly LOGOUT_FAILED: "Failed to logout from Keycloak, but account will be removed locally.";
33
30
  readonly TOKEN_REFRESH_FAILED: "Failed to refresh token for account";
34
- readonly SSO_CLEAR_FAILED: "Failed to clear SSO session. Please sign out first if prompted by Keycloak.";
35
31
  };
36
32
  /**
37
33
  * Warning/Info messages