mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
## Problem - The legacy jwt settings still uses `formik` and we want to remove it in favour of `react-hook-form` to keep only one form library - The legacy jwt settings does not follow the design system guidelines ## Solution - Migrate to `react-hook-form` - Apply the design system guidelines ## How to test To test the custom JWT secret, I haven't found a better way than inverting the condition at L337 (`!legacyKey` to `legacyKey`). This allowed me to ensure the process worked at least up to the API call which fails with my local instance as legacy tokens aren't supported anymore. ## Screenshots Before: <img width="1199" height="599" alt="image" src="https://github.com/user-attachments/assets/1c6e0bb1-0698-4238-847f-d2c72adf3462" /> After: <img width="1228" height="646" alt="image" src="https://github.com/user-attachments/assets/3b2a45a9-aa43-4c3e-9653-2b2610616889" /> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>