Generating new Anonymous Keys, Service Role Keys, and database passwords
Whenever you accidentally expose one of your secrets – for example, through screen sharing or another simple mistake – you need to know how to change this secret immediately. Also, it’s a good idea to change them regularly anyway, just like changing regular passwords.
On your local development, there is no such option, but there’s also no need to change the default secrets – that’s because it’s your local machine for local development, and it’s not meant to be something you expose. In other words, if you expose your local instance to the public web, you probably have a different problem.
However, in your instance on supabase.com, you can easily change secrets and passwords. Go to Project Settings | API, and then within the JWT Settings section, you can force the creation of a new JWT secret by clicking the Generate a new secret dropdown and choosing...