Skip to main content

Debugging Authentication

Here are common issues and their solutions when working with Supabase authentication in SvelteBolt.

Common Errors

  • "Invalid API Key":

    • Check that your .env file has the correct values for PUBLIC_SUPABASE_ANON_KEY.
  • "Redirect Not Allowed":

    • Ensure your app’s URL is added to Allowed Redirect URLs in the Supabase Dashboard under Authentication > Settings.

Monitoring Logs

  • Use Supabase's Auth Logs in the dashboard to view login and signup activity.

Resetting a User

If needed, manually delete or reset a user:

DELETE FROM auth.users WHERE email = '[email protected]';