spry-apps-dropdown 3.0.0 → 3.0.1
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/README.md +3 -6
- package/dist/SpryAuthProvider.d.ts +1 -2
- package/dist/constants.d.ts +5 -0
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +389 -389
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -87,9 +87,6 @@ const oidcConfig = {
|
|
|
87
87
|
client_id: 'my-app-client',
|
|
88
88
|
redirect_uri: window.location.origin,
|
|
89
89
|
post_logout_redirect_uri: window.location.origin,
|
|
90
|
-
onSigninCallback: () => {
|
|
91
|
-
window.history.replaceState({}, document.title, window.location.pathname)
|
|
92
|
-
},
|
|
93
90
|
}
|
|
94
91
|
|
|
95
92
|
function App() {
|
|
@@ -97,7 +94,7 @@ function App() {
|
|
|
97
94
|
|
|
98
95
|
return (
|
|
99
96
|
<TopBar
|
|
100
|
-
apiUrl="https://
|
|
97
|
+
apiUrl="https://sprylogin.com/apps-api"
|
|
101
98
|
accountManager={accountManager}
|
|
102
99
|
/>
|
|
103
100
|
)
|
|
@@ -188,7 +185,7 @@ function MyComponent() {
|
|
|
188
185
|
</IconButton>
|
|
189
186
|
|
|
190
187
|
<AppsDropdownConnected
|
|
191
|
-
apiUrl="
|
|
188
|
+
apiUrl="https://sprylogin.com/apps-api"
|
|
192
189
|
open={appsMenuOpen}
|
|
193
190
|
onClose={() => setAppsMenuOpen(false)}
|
|
194
191
|
buttonRef={appsButtonRef}
|
|
@@ -210,7 +207,7 @@ function MyComponent() {
|
|
|
210
207
|
const appsButtonRef = useRef<HTMLButtonElement>(null)
|
|
211
208
|
|
|
212
209
|
// Use the hook for more control
|
|
213
|
-
const { apps, isLoading, error, refetch } = useAppsData('
|
|
210
|
+
const { apps, isLoading, error, refetch } = useAppsData('https://sprylogin.com/apps-api', {
|
|
214
211
|
refetchInterval: 10 * 60 * 1000, // 10 minutes
|
|
215
212
|
cacheTime: 10 * 60 * 1000 // 10 minutes
|
|
216
213
|
})
|
|
@@ -8,8 +8,7 @@ interface SpryAuthContextValue {
|
|
|
8
8
|
}
|
|
9
9
|
export interface SpryAuthProviderProps extends AuthProviderBaseProps {
|
|
10
10
|
config: UserManagerSettings;
|
|
11
|
-
syncBridgeUrl?: string;
|
|
12
11
|
}
|
|
13
|
-
export declare function SpryAuthProvider({ children, config,
|
|
12
|
+
export declare function SpryAuthProvider({ children, config, onSigninCallback, matchSignoutCallback, onSignoutCallback, onRemoveUser, skipSigninCallback, }: SpryAuthProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export declare function useSpryAuthContext(): SpryAuthContextValue;
|
|
15
14
|
export {};
|
package/dist/constants.d.ts
CHANGED
|
@@ -42,3 +42,8 @@ export declare const INFO_MESSAGES: {
|
|
|
42
42
|
readonly NO_ACCOUNTS: "No additional accounts stored. Your primary auth remains active.";
|
|
43
43
|
readonly REDIRECT_IN_PROGRESS: "Redirecting to Keycloak for authentication...";
|
|
44
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Sync bridge URL - shared infrastructure for cross-app account synchronization
|
|
47
|
+
* All apps (local and production) use the same deployed sync bridge
|
|
48
|
+
*/
|
|
49
|
+
export declare const SYNC_BRIDGE_URL = "https://sprylogin.com/apps-api/sync-bridge.html";
|