Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

update session expired dialog with more info on common issues. (#39367)

Jordi Enric31a19a0520b8
diff --git a/apps/studio/components/interfaces/SignIn/SessionTimeoutModal.tsx b/apps/studio/components/interfaces/SignIn/SessionTimeoutModal.tsx
index 82ed566f169..c4e05cf8bd5 100644
--- a/apps/studio/components/interfaces/SignIn/SessionTimeoutModal.tsx
+++ b/apps/studio/components/interfaces/SignIn/SessionTimeoutModal.tsx
@@ -3,6 +3,7 @@ import { useEffect } from 'react'
import { InlineLink } from 'components/ui/InlineLink'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
+import { toast } from 'sonner'
interface SessionTimeoutModalProps {
visible: boolean
@@ -35,13 +36,43 @@ export const SessionTimeoutModal = ({
'Please try signing in again. If you are not able to sign in again, please contact Support.',
}}
>
- <p className="text-sm text-foreground-light">
- Consider{' '}
- <InlineLink href="https://github.com/orgs/supabase/discussions/36540">
- generating a HAR file
- </InlineLink>{' '}
- from your session to help Support pinpoint the issue.
- </p>
+ <div className="space-y-4 text-sm text-foreground-light">
+ <ul className="list-disc pl-1.5 list-inside space-y-1 text-sm text-foreground-light">
+ <li>Try with a different browser</li>
+ <li>Disable browser extensions that block network requests</li>
+ <li>
+ <button
+ title="Clear storage and reload"
+ className="underline"
+ onClick={() => {
+ try {
+ localStorage.clear()
+ sessionStorage.clear()
+ } catch (e) {
+ toast.error('Failed to clear browser storage')
+ }
+ window.location.reload()
+ }}
+ >
+ Clear your browser storage
+ </button>
+ </li>
+ </ul>
+ <p>
+ If none of these steps work, please{' '}
+ <InlineLink href={`/support/new?subject=Session%20timed%20out`}>
+ Contact support
+ </InlineLink>
+ .
+ </p>
+ <p>
+ Consider{' '}
+ <InlineLink href="https://github.com/orgs/supabase/discussions/36540">
+ generating a HAR file
+ </InlineLink>{' '}
+ from your session to help Support pinpoint the issue.
+ </p>
+ </div>
</ConfirmationModal>
)
}