Supabase

S

Supabase

Join the community to ask questions about Supabase and get answers from other members.

Join

Unacceptable audience in id_token" Error with Native Sign-In on Local Supabase Instance

I am using Supabase Auth with Expo. - "@supabase/supabase-js": "^2.49.4" - "supabase": "^2.33.9" ...

Urgent: Need help in my production app with new users not being able to sign in

The issue is - when they go to sign in with said email and password - it is not actually signing them in. I see the auth token saved to my cookies, and when I console log the data response from the SignInWithEmailAndPassword() it shows all the data there. The weird part is on older accounts, like the one I made when I first launched and my original users - we can all sign in fine no problem. It is only newly created accounts that cannot sign in. I confirmed evrything on the supabase side seems to be working, it says the emails were confirmed etc.. but still no luck. Not sure where to really begin here. I am using Turnstile for CAPTCHA protection, and have since I launched. I also am using supabase email/pw auth. ...

I removed data from table by wrong and i am in free plan

I removed data from table by wrong and i am in free plan help me........

RealtimeClient.js:153 WebSocket connection to 'ws://localhost:54321/realtime/v1/websocket?apikey=xx

Hi, I have upgraded to 2.33.9 and im running this locally - this is an important distinction because when I push to vercel and connect to supabase.com, we dont have this issue. Where Im running a real time connection on a page I get repetitive errors in my browser console (Ive checked 3 browsers and incognito) and I keep getting RealtimeClient.js:153 WebSocket connection to 'ws://localhost:54321/realtime/v1/websocket?apikey=xx. Supabase has been started and is running without issues. Any idea what is causing this please, I can ping curl -I "http://localhost:54321/realtime/v1/api/ping" and it returns a 200. I didnt have this problem before. I have this policy set in my realtime settings for select: alter policy "Users can receive memorial broadcasts" on "realtime"."messages"...

how i can change redirect url for reset password

```js if (!rateLimitCheck.allowed) { return NextResponse.json( { error: 'Too many requests. Please wait a moment before trying again.',...

AuthApiError: Error sending recovery email

i made this code for send a recovery email for reset password and i got this error ```js try {...

Supabase UI - something changed & I don't know why?

I'm working on a supabase project -i'm the only user right now - so i haven't bothered to enable RLS. Earlier today, I went to drop a field from a table, and the system sort of "crapped out". Now, when I log in and go to the table editor - i see a ton of red labels (presumably related to the RLS). Meanwhile, my tabs when I open a table now have the public. prefix. While neither of this is a big deal, I don't know why or how the change came to be. Is this something that Supabase did on its own?...
No description

Mailer Autoconfirm

I've been struggling to figure out how to send emails with the SMTP using Resend. Even after integrating, doing all checks the emails still get sent from Supabase address. It seems it has to be with various issues but one I cannot seem to resolve is that mailer_autoconfirm=TRUE, I have tried setting it to FALSE via the API but have failed and nowhere to be changed in the dashboard. My stack is with Flutter + Supabase + RESEND. Any ideas how to solve this?...
No description

Supabase Storage file upload - 403 Unauthorized

Hello everyone. I've been trying to upload files into bucket (my backend express+nodejs) but getting 403 unauthorized constantly, despite RLS are created for INSERT, UPDATE, DELETE for authorized users. const filePath = images/${product.sku}/${Date.now()}_${fileName}; const { data, error } = await supabase.storage.from('products').upload(filePath, file.buffer, { upsert: true,...

Best way to prevent supabase real-time from dying?

Do I have to send a ping like every 25 seconds or something to keep the socket alive? Or is there a better way of ensuring it doesnt disconnect from inactivity

Connection IP in supavisor_logs?

In the Supabase Logs Explorer, is it possible to get the IP of the machine that is connecting to the shared pool? In other words, if I were connecting to it from my development machine, it would be the IP of my development machine. I've found that connection_from is available in postgres_logs and IP addresses can be seen in event_message in pgbouncer_logs, but I haven't been able to find an equivalent in supavisor_logs yet....

OCR

hello, I would like to know if there are pre-built OCR solutions or would I use something like an edge function triggered by a file upload with the data added to a DB table. I want to upload fairly well-structured data, receipts that I can read and interpret and then store in the db....

Swift App not receiving callbacks on the onBroadcast(event:) for Broadcast on Database

I am not seeing any call back messages from real-time in my Hello, World swift app. The app is able to connect and insert rows of data, but the onBroadcast callbacks are never triggered. I can following the channel from the dashboard and see the messages coming across. I can also use: ```...

Download Physical Backup

Hello everyone, I have some issues that need to be checked. A few customers noticed misalignment in the data between today and few days ago. I want to download the physscal backup to check if they're correct and if there're any glitch in the platform. I saw there's this command: npx supabase@beta backups list to list the available backups, but how to I download them? I don't want to restore because this would cause data loss....

How to import Local packages into Edge functions in monorepo?

I've created a utility package for sharing functions across a turborepo environment. I am having issues importing functions from my monorepo utils package when there are additional imports in that package source file. In my import_map.json: ...

How to handle Supabase Auth in offline-first React Native apps without logging users out?

Hey, I'm using Supabase Auth in a React Native app, and I'm running into a problem with offline support. When a user opens the app without an internet connection, the session eventually expires after refresh token retries fail, and the user is logged out. This breaks the offline first experience ideally, the user should stay logged in and be able to access locally stored content even without connectivity. For context this is not possible as the app only allows access to certain screens if the user is authenticated. ...

Auth session instantly invalid + PGRST116 errors (worked fine before)

I’ve been experiencing major issues with auth and database queries suddenly breaking. I’ve been working on this app for almost 2 years, adding features and expanding it. Recently, I noticed service updates on Supabase, and I strongly suspect something changed behind the scenes that’s now affecting my app. Suddenly, I'm getting PGRST116 errors ("JSON object requested, multiple (or no) rows returned") when querying my profiles table—even though the user exists and the ID is correct. At the same time, my auth session seems to expire or disappear immediately after logging in. I fetch the user via supabase.auth.getUser() and get a valid user.id, but follow-up calls to fetch profile data fail as if the user doesn’t exist. I haven’t made any changes related to auth in my code. I test thoroughly before every commit, and my last commit was a few days ago when everything was working perfectly. I’ve even checked out previous commits, and the app is now broken regarding auth....

Edge Function Not Receiving Custom Headers from Clerk Webhook (svix-id, svix-signature, etc.)

I'm encountering a persistent issue where my Edge Function is returning a 401 error (Missing authorization header) when invoked by a Clerk webhook. The webhook includes the svix-id, svix-signature, and svix-timestamp headers, but these headers are not visible in the function when it runs. To fix this, I created the following file: supabase/functions/sync_user_from_clerk/.supabase/functions.toml ...
No description

Can't send messages

Hi there - i can't seem to contribute to the channels e.g. #general I've just joined

How to type any type in subscription on callback

```ts export const systemQueueChannel = supabase .channel('system-queue-changes') .on('postgres_changes', { event: 'INSERT', schema: 'governance', table: 'system_queue' }, (payload) => { handleSystemQueueChange(payload)...
No description