How do I connect my app to my Supabase-Ready Database? Print

  • supabase-ready database, supabase, connect, api key
  • 0

Your app connects to your Supabase-Ready Database the same way it connects to any Supabase project: with your project address and your public (anon) API key.

Where to find them

When your Supabase-Ready Database is ready, your details appear on the page for your service in the client area. For your security they are never sent by email. The page shows:

  • Your https address
  • Your public (anon) API key
  • Your service key
  • Your dashboard login

Sign in at my.farringtonhosting.com, open Services, then Supabase-Ready Database. Use the Copy buttons next to each item; the password and the service key stay hidden until you choose Show.

Connecting

  1. Copy your https address and your anon key from your service page.
  2. In your app, give these two values to the Supabase client library as its project URL and its key.
  3. Run your app and make a request to check that it connects.

Keep your keys safe

  • The anon key is meant for apps that run in a browser or on a phone.
  • The service key gives full access to your project. Keep it out of any code that runs in a browser or on a phone, and out of any public repository.

If a key is exposed or you lose it, open a ticket and we will help.

Supabase is a trademark of Supabase, Inc. Farrington Hosting is an independent provider and is not affiliated with, endorsed by, or sponsored by Supabase, Inc.


Was this answer helpful?

« Back