Questions tagged [supabase]

Supabase is a collection of open source tools to build modern applications quickly and efficiently. It uses the PostgreSQL database to power its authentication, database, and storage features. Use this tag when you are having problems, and not to ask for new features.

Supabase is a combination of open source tools. It builds the features of Firebase using enterprise-grade, open source products. Supabase is not a 1-to-1 mapping of Firebase. Its aim is to give developers a Firebase-like developer experience using open source tools.

Supabase has an official JavaScript library as well as community built Dart, Rust, Kotlin, C# and Python libraries.

Supabase is composed of four components

  • Database
  • Authentication
  • Storage
  • Functions (coming soon)
1213 questions
2
votes
1 answer

Supabase Auth UI: Google OAuth is redirecting, but email is not

Edit:I found the source of this issue. The redirectTo param of the Auth component works for OAuth providers, but does not work for email or magiclink. Does anyone know how to redirect users to a certain page when the user signs in with email while…
Sam Yoon
  • 53
  • 5
2
votes
1 answer

Mocking supabase-js supabase.auth.signUp

I want to mock supabase.auth.signUp of @supabase/supabase-js. I am not directly calling supabase.auth.signUp, but in a wrapper I created. If I don't use jest.fn(), but a default JS function, it is correctly resolving the object I want. However this…
HotFix
  • 157
  • 1
  • 11
2
votes
1 answer

How to pull data from my production supabase database into my local supabase database

I have been trying to fix this problem, I could not search any documentation for this specific problem. I have everyhing setup, the project is linked, the docker is running, I just can not figure out the way to pull data from my production database…
2
votes
1 answer

How to execute async code before redirect on vue-router?

I'm building a app with supabase. I have a route that receives query parameters from a email magic link and I want to validate those parameters on supabase service before I redirect to a target url (also a query parameter). Example: const router =…
guizo
  • 2,594
  • 19
  • 26
2
votes
0 answers

How to sort by a calculated column in Supabase?

is it possible to sort a db query using the supabase api on a computed value? something like: await supabase .from('drives') .select('distance / time AS speed') .order('speed', { ascending: false }) (yes i know i could call a custom postgres…
stuart
  • 1,785
  • 2
  • 26
  • 38
2
votes
1 answer

How to upload to Supabase Storage using curl?

I see examples and manuals of uploading files to Supabase Storage for all client libraries, but no complete information for plain HTTP protocol (say, using curl). Both the Supabase Storage API Reference Manual and Supabase Storage API Swagger UI…
tanius
  • 14,003
  • 3
  • 51
  • 63
2
votes
0 answers

Cannot Delpoy Sveltekit app with Supabase From netlify

So i have a app with Sveltekit tailwindcss skeleton ui and supabase, i have tried to deploy from vercel and netlify but neither of them have been working! Error: import { 7:49:34 AM: 3: PUBLIC_SUPABASE_ANON_KEY, 7:49:34 AM: 4: …
2
votes
1 answer

Failed to run sql query: must be member of role "supabase_admin" showing in SQL editor

How to get supabase admin role? I am new to Sql editor So I don't know anything
2
votes
1 answer

Access supabase database from edge function as admin

I'm coming from Firebase Function... Where I can use the Admin Library to access database from the Function bypassing all security rules? On supabase I didn't yet find a way to do that, the documentation is very scarce. Now I'm using this code to…
2
votes
0 answers

Supabase functions local development setup error: Cannot assign requested address

I am using Supabase as my BaaS, and i have developed and deployed multiple Edge functions. Now i am attempting to develop and debug them locally. However, i am having some issues. As described here…
2
votes
2 answers

Supabase realtime connection failing when custom JWT is used

I'm using supabase self-hosted and auth0 for my authentication instead of the default authentication provided by supabase. So I'm signing my auth0's payload with supabase secret and sending it in headers. const payload = { userId: user.email, …
2
votes
1 answer

How to use the signUp() method in Supabase to add additional user info when signing up

I am attempting to build a Vue.js application that includes authentication with Supabase. I wish to use the built-in Supabase signUp() method to handle additional user data when signing up. To do this, I added a property to the signUp object that…
2
votes
0 answers

google provider sign in with supabase auth

sigining in with next_auth and a google provider sends me to the "site URL configuration" setting. (the main site URL) with an access token at the end of the URL. Siging in on the same page with normal means works fine. I am using the supabse…
2
votes
1 answer

Prisma & Supabase - Segmentation fault (core dumped)

I got the following error, while trying to populate my Supabase table using Prisma... Segmentation fault (core dumped) I'm using NodeJ, and the following script import { createRequire } from "module"; const require =…
Henri
  • 1,571
  • 5
  • 23
  • 38
2
votes
0 answers

GetStream with Supabase via Edge Function -- how to?

I need to write a Supabase Edge Function that interacts with GetStream. But as Supabase Edge Functions are running via Deno, I am importing the package via JS Deliver as follows: import { StreamChat } from…
boeledi
  • 6,837
  • 10
  • 32
  • 42