Skip to content

feat: steal the auth lock if it was not completed in 10s#39868

Merged
hf merged 1 commit intomasterfrom
hf/steal-auth-lock-after-10s
Oct 27, 2025
Merged

feat: steal the auth lock if it was not completed in 10s#39868
hf merged 1 commit intomasterfrom
hf/steal-auth-lock-after-10s

Conversation

@hf
Copy link
Contributor

@hf hf commented Oct 25, 2025

We can't find why the lock sometimes gets blocked up. This code should at least see the dashboard load, as it will steal the lock that's holding everything and then release it so other functions can acquire it properly.

@supabase
Copy link

supabase bot commented Oct 25, 2025

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel
Copy link

vercel bot commented Oct 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
cms Ready Ready Preview Comment Oct 25, 2025 1:59pm
design-system Ready Ready Preview Comment Oct 25, 2025 1:59pm
docs Ready Ready Preview Comment Oct 25, 2025 1:59pm
studio-self-hosted Ready Ready Preview Comment Oct 25, 2025 1:59pm
studio-staging Ready Ready Preview Comment Oct 25, 2025 1:59pm
ui-library Ready Ready Preview Comment Oct 25, 2025 1:59pm
zone-www-dot-com Ready Ready Preview Comment Oct 25, 2025 1:59pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
studio Ignored Ignored Oct 25, 2025 1:59pm

@hf hf merged commit 83dffae into master Oct 27, 2025
18 checks passed
@hf hf deleted the hf/steal-auth-lock-after-10s branch October 27, 2025 17:45
mandarini added a commit that referenced this pull request Feb 25, 2026
The SDK now handles orphaned lock recovery via steal internally
(supabase-js#2106). Keep the BroadcastChannel observability wrapper for
Sentry signals. The steal-based orphaned lock recovery in
`debuggableNavigatorLock` (packages/common/gotrue.ts) (introduced in
#39868) is now redundant,
supabase-js#2106 handles this natively in the SDK.

Removes the `navigator.locks.request({ steal: true })` block while
keeping the BroadcastChannel wrapper that sends lock-holder stack traces
to Sentry.

Related: supabase/supabase-js#2106, supabase/supabase-js#2125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants