Commit Graph
29 Commits
Author SHA1 Message Date
Gildas Garcia 63bedef77f MFA Recovery codes: allow users to download their recovery codes (#50267)
## What kind of change does this PR introduce?

After users have set up a new MFA (first or not), we must:

- check whether recovery codes have already been generated
- if there are none, generate recovery codes and display them, "forcing"
users to copy them
- if already generated, show them how many are still available

> [!NOTE]
> The _Delete my recovery codes_ button in last screenshot only appear
on local and staging environments

## How to test

- On an account that doesn't have recovery codes generated yet and has
an MFA added
- You should see an admonition suggesting to generate the codes

## Screenshots

<img width="729" height="306" alt="image"
src="https://github.com/user-attachments/assets/79ba3870-4ef8-4571-9fd6-36eed20c9c24"
/>

<img width="550" height="356" alt="image"
src="https://github.com/user-attachments/assets/1632611a-996a-470d-b6cd-a4693b0f4602"
/>

<img width="719" height="205" alt="image"
src="https://github.com/user-attachments/assets/73cef611-05cf-4fac-bbd2-243f9b28e48d"
/>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added support for generating, copying, and confirming MFA recovery
codes.
- Added recovery-code status visibility, including remaining and
exhausted codes.
  - Added the ability to delete recovery codes with confirmation.
- Added clear loading, success, and error states for recovery-code
actions.
  - Recovery-code status refreshes after codes are generated or deleted.

- **Bug Fixes**
- Recovery-code notices now remain visible when all codes have been
used.
  - Recovery-code dialogs can now be closed after generation errors.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-15 11:16:47 +02:00
Jeremias Menichelli 41dd3c3cad chore: Remove unactionable warning polluting CI (#43748) 2026-03-13 14:29:09 +00:00
Katerina Skroumpelou 996104a90b chore: remove steal fallback from debuggableNavigatorLock (#43172)
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
https://github.com/supabase/supabase/pull/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
2026-02-25 16:19:45 +00:00
Cemal Kılıç 9450cdb7aa feat(auth): remove fetch with timeout (#41633) 2025-12-29 17:12:21 +07:00
Ivan Vasilov 3e8baa2236 chore: Disable sending the Lock error to Sentry (#39999)
Disable sending the Lock error to Sentry.
2025-10-30 10:22:20 +01:00
Stojan Dimitrovski 83dffaeddd feat: steal the auth lock if it was not completed in 10s (#39868) 2025-10-27 18:45:21 +01:00
Stojan Dimitrovski 7646c167d6 feat: bump debug time of auth lock to 10s (#39724) 2025-10-21 15:20:55 +00:00
Prashant Sridharanandkemal 31368be3c1 Added new case study for Rally (#39721)
* Added new case study for Rally

* ci: Autofix updates from GitHub workflow

* chore: colour correct rally logos

---------

Co-authored-by: kemal <hello@kemal.earth>
2025-10-21 15:28:38 +01:00
Cemal Kılıç 7df7c4eec3 feat(auth): use fetch with timeout for auth calls (#39714) 2025-10-21 15:13:30 +03:00
Stojan Dimitrovski 401d6fe892 feat: add navigator lock debugging to track down some rare issue (#39688)
* feat: add navigator lock debugging to track down some rare issue

* send exception to sentry
2025-10-21 11:40:33 +02:00
Cemal Kılıç ae4f2b39b6 feat(auth): add experimental userStorage support (#36195) 2025-06-05 14:42:10 +02:00
Charis f0ff6cee8b fix(common): prevent errors when accessing local storage in certain browser setups (#36003)
fix(common): prevent errors when accessing local storage in certain
browser setups

Got many reports of errors from accessing localStorage on Safari,
probably due to certain user security settings that cause the browser to
throw an error on storage access.
2025-05-29 11:31:21 -04:00
4278bd4ec1 fix: bump auth-js version to v2.67.3 (#31217)
* fix: bump auth-js version to v2.67.3

* chore: add supabase/auth and supabase/dashboard as codeowners

* Revert "chore: add supabase/auth and supabase/dashboard as codeowners"

This reverts commit 57fc5776ba.

* bump supabase-js version

* import user type from single gotrue

* fix auth-js version in studio

* remove auth-js dep in studio

* fix ts

* use catalog versions

* fix ts

* Bump realtime-js version to avoid having 2 versions.

* Add @supabase/realtime-js to the pnpm catalog.

* upgrade realtime-js

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2025-01-17 14:54:21 +08:00
Alaister Young 1db34e9156 fix: LW ticket site auth state conflict with studio (#28336) 2024-08-02 18:44:03 +08:00
Kang Ming 87f7f6ce81 chore: bump supabase-js (#22361)
Revert "Revert "chore: bump supabase-js" (#22325)"

This reverts commit 67e1b1b00b.
2024-04-03 14:23:55 +08:00
Kang Ming 67e1b1b00b Revert "chore: bump supabase-js" (#22325)
Revert "chore: bump supabase-js (#22312)"

This reverts commit 0ff546a539.
2024-03-29 04:45:11 +00:00
0ff546a539 chore: bump supabase-js (#22312)
* chore: bump supabase-js

* more gotrue renames

* chore: update types

* chore: prettier

* chore: typings

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Bobbie Soedirgo <bobbie@soedirgo.dev>
2024-03-29 11:18:04 +07:00
Han Qiao 609d5283b7 fix: do not warn about navigator lock when not used (#18287) 2023-10-18 12:04:07 +08:00
Stojan Dimitrovski 3ee84aea03 feat: adds a persisted auth debug log if supabase.dashboard.auth.debug.persisted is true 2023-09-13 13:54:33 +02:00
Stojan Dimitrovski ec95c32c7a feat: enable navigatorLock completely, track random logouts 2023-08-22 14:29:55 +02:00
Stojan Dimitrovski c1f3bb3bb9 feat: add feature flag for enabling GoTrue navigatorLock 2023-08-04 10:38:39 +02:00
Stojan Dimitrovski 9bc1f03b6b feat: bump gotrue-js to v2.46.1 and bring back navigatorLock 2023-07-26 09:16:12 +02:00
Kang Ming 5b3916277f Revert "feat: bump to gotrue-js v2.45.0 and bring back navigatorLock"
This reverts commit 3dc2788d52.
2023-07-24 15:14:07 +08:00
Stojan Dimitrovski 3dc2788d52 feat: bump to gotrue-js v2.45.0 and bring back navigatorLock 2023-07-21 15:42:26 +02:00
Alaister Young c6124ebfc7 remove navigator lock 2023-07-21 09:04:11 +10:00
Stojan Dimitrovski fb08e55236 feat: add navigatorLock to GoTrueClient 2023-07-19 11:26:51 +02:00
Stojan Dimitrovski 5a98d79715 feat: prevent document unload if gotrue is debugged and in a fetch 2023-07-05 14:09:53 +02:00
Stojan Dimitrovski e302638d2a feat: enable gotrue debug flag via localstorage 2023-06-29 14:16:19 +02:00
Alaister Young dad187b782 chore: share dashboard auth state across apps 2023-03-30 13:17:45 +11:00