79529287

Date: 2025-03-23 16:50:58
Score: 1
Natty:
Report link

I removed the "Forgot your password" link from my login page by setting forgotten_password: "" in the localization settings. I added the code below to just above the preferred OAuth providers section

     // remove forgotten pasword links/section for now
            localization={{
              variables: {
                // @ts-expect-error
                forgotten_password: "" // Try direct property
              }
            }}

I was able to do this because of the way Supabase Auth is organized into different screens or "views" that users can navigate between.

Each view has a label that serves two purposes:

  1. It determines what text appears on the button or link to access that view

  2. It controls whether that view is accessible at all

I was using TS so had to use @ts-ignore for now as it created a linting error but i don't want to delve into that as i will add that functionality back anyway.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @ts-ignore
  • Low reputation (1):
Posted by: Shanti Rai