@opexa/portal-components 0.0.543 → 0.0.544

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.
@@ -4,6 +4,7 @@ import { useTimeout } from 'usehooks-ts';
4
4
  import { useSessionHealthQuery } from '../../client/hooks/useSessionHealthQuery.js';
5
5
  import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
6
6
  import { useSignOutMutation } from '../../client/hooks/useSignOutMutation.js';
7
+ import { toaster } from '../../client/utils/toaster.js';
7
8
  export function SessionWatcher() {
8
9
  const router = useRouter();
9
10
  const sessionQuery = useSessionQuery();
@@ -14,6 +15,10 @@ export function SessionWatcher() {
14
15
  const signOutMutation = useSignOutMutation({
15
16
  onSuccess() {
16
17
  router.refresh();
18
+ toaster.warning({
19
+ title: 'Session expired',
20
+ description: 'Your session has expired. Please sign in again to continue.',
21
+ });
17
22
  },
18
23
  });
19
24
  const healthy = sessionHealthQuery.data ?? true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.543",
3
+ "version": "0.0.544",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",