Supabase Requests
Wized has a native Supabase integration, which makes it easy to make requests to your Supabase instance.
This integration acts as a wrapper for the Supabase JavaScript client library, @supabase/supabase-js, enabling you to interact seamlessly with your Supabase instance.
Our integration provides a rich set of functionalities to interact with your Postgres database, manage user accounts, handle file uploads, and much more.
You can even subscribe to real-time updates.
How to get started?
To start using Supabase in your web app, you first need to add it to My Apps.
There, you will be prompted to provide the following information:
- Supabase URL: Your unique Project URL
- Supabase key: Your API key —
anon
public
You can find this information in your Supabase dashboard, under Project Settings > API.
Supabase Methods
Wized offers a variety of Supabase methods to cater to your data management needs.
These methods are designed to simplify your interactions with the database, user management, and real-time updates.
Here’s a quick overview of the methods available:
- Get Session: Access session information.
- Get User: Retrieve user details.
- Update User: Update user information.
- Sign Up: Register new users.
- Sign In with Password: Authenticate users with a password.
- Sign In with Magic Link: Provide passwordless authentication.
- Sign In with OAuth: Enable OAuth-based authentication.
- Sign Out: Log out the user.
- Send Password Reset: Assist users with password recovery.
- Get Item: Retrieve a specific item from your database.
- Get List: Fetch a list of items based on certain criteria (supports real-time subscriptions).
- Unsubscribe Real-Time: Unsubscribe from real-time updates.
- Create Item: Add new items to your database.
- Update Item: Modify existing items in your database.
- Delete Item: Remove items from your database.
- Invoke Function: Invoke a Supabase Edge Function.
- Upload File: Upload a file to your file storage.
- Get File URL: Get the URL of one of your files.
Real-time
When you're configuring Get List requests, you have the option to subscribe to real-time updates.
This feature keeps your app in sync with your database changes instantly, ensuring your data is always up-to-date.