227 questions
0
votes
1
answer
39
views
Supabase RLS: Anonymous INSERT into reviews returns 401 while authenticated INSERT works (campaign_id active, policies correct)
I’m facing a strange Supabase RLS issue that I can’t resolve after days of debugging.
I have a public review flow:
Users should be able to submit reviews without logging in (anonymous users) and also ...
Advice
1
vote
1
replies
50
views
How do I make an authenticated request from my Next.js API on Supabase with RLS enabled?
In my case, I only want authenticated users to perform a SELECT query on my database, so I set up my RLS Policy for this scenario. This is where I am hitting an issue. With RLS enabled, I need to let ...
0
votes
1
answer
46
views
How do I upload images from the gallery to Supabase storage in Expo React Native?
I am using Expo Image Picker to select an image from the gallery so I can upload the file to a Supabase storage bucket called 'avatars'. In the Supabase storage docs they say:
For React Native, using ...
-1
votes
0
answers
65
views
Supabase server refusing to start locally because of migrations mismatch
I am new to supabase I need help starting my supabase server locally
I'm working on a project that was initially started with Lovable AI and uses Supabase as it's backend. I recently joined the team ...
0
votes
0
answers
50
views
supabase postgis tile server and javascript decoding base64 encoded data
I was trying to serve vector tiles on the fly using an rpc function in superbase but somehow when the responce arrives in the front end using a custom protocol. the vector tiles are not displayed.
...
0
votes
0
answers
201
views
Supabase Auth: auth.signInWithPassword always returns Invalid login credentials
I am using the Supabase JavaScript client in a Next.js project. User registration completes successfully, and the new user appears in the auth.users table. However, when I attempt to log in with the ...
0
votes
1
answer
147
views
How to implement auth in Supabase without mixing server actions and client actions?
I am using Supabase and NextJS in my app to implement authentication but the majority of my auth actions are server side with the exception being the sign-out action as the Supabase docs advise using ...
0
votes
0
answers
65
views
Manage session/authentication with RLS
Started to use supabase and focus a bit on auth/session ...
I have a simple Node app with signInWithPassword and a endpoint getClients.
My table has a policy for SELECT
alter policy "Enable read ...
1
vote
0
answers
229
views
AuthApiError: Invalid Refresh Token: Refresh Token Not Found supabase
I'm developing a web app using remix.js and supabase as BAAS. By default my access token expire after an hour. Whenever I try to login from a new browser (with no previous cookies) or logout and login ...
2
votes
1
answer
84
views
Supabase Storage Upload Works on Desktop but Fails on Mobile
I’ve run into a weird issue with Supabase Storage and could really use some help.
I'm building a document uploader using Supabase Storage. Everything works perfectly on desktop, but when I try ...
0
votes
2
answers
303
views
How to authenticate a user with Supabase using only userId or email?
I need to create a permanent link that a user can use to authenticate in a Nextjs14 app at any time and as many times as they want.
I tried using generateLink, but this link expires after 24 hours or ...
1
vote
1
answer
280
views
ERROR Integrating [email protected] in React Native CLI – Cannot assign to property ‘protocol' which has only a getter, js engine: hermes
I have created a React Native CLI app project in TypeScript with Supabase integration. I’ve set up my client like this:
import { createClient } from '@supabase/supabase-js';
export const supabase = ...
0
votes
0
answers
144
views
supabase.auth.updateUser({ email }) freezes my React Native app (infinite loader, can't sign out)
I'm using Supabase with React Native (Expo) for user authentication.
When I try to update the user's email using the following code:
await supabase.auth.updateUser({ email: newEmail });
👉 The request ...
0
votes
1
answer
327
views
How can I connect my backend server to Supabase? [closed]
I'm currently working on a project that involves a native client app, a backend server (Node.js), and Supabase for both the database and authentication.
Here's the architecture I'm considering:
The ...
1
vote
1
answer
57
views
Mysterious 404 with next-intl and supabase auth
I have many mysterious 404 errors that seem to circumvent my app router integration with next-intl.
middleware /rider/trip/1321fcf9-91ef-4142-9c31-53934d1383ad
response: 200
✓ Compiled in 1ms
GET /...
0
votes
0
answers
156
views
Build SMS Auth with Custom Provider in Supabase
I'm trying to add SMS OTP to my flutter app using custom provider I was reading about this article : https://medium.com/@lavisht22/optimizing-sms-authentication-costs-with-supabase-a-deep-dive-...
0
votes
0
answers
73
views
How to have different environments for an Expo app with Supabase?
I have a React Native app built with Expo and Supabase. It works great in development. Now, I want to create a staging and production environment on Supabase (like on Firebase). I couldn't find how to ...
0
votes
0
answers
123
views
How to fix broken image on storage bucket of Supabase
I'm uploading profile image from React, Next.js frontend to Supabase backend. It was successfully uploaded, but the image is broken. And I found that the type of the upload image is originally .png ...
0
votes
0
answers
166
views
I'm trying to send a confirmation email (to verify a new user's email ), but Supabase keeps sending a OTP instead
I want to send users a magic link so they can sign up and get full access to the project. However, Supabase keeps sending a OTP instead of a direct sign-up magic link
const { error } = await supabase....
0
votes
0
answers
114
views
How to use supabase ssr package with node js runtime and not edge runtime
I want to use the node js runtime with the supabase ssr package, if I don't use edge runtime my code doesn't work, but I want to use node js runtime some packages doesn't work well with edge, also I'm ...
0
votes
1
answer
113
views
Supabase edge functions with GraphQL fails
I'm testing out how to query the database with GraphQL from within a Supabase edge function.
Within the GUI of Supabase we can clearly execute the GraphQL query to retrieve the desired data:
However, ...
0
votes
0
answers
358
views
Expo Dev Client (iOS) + Supabase — TypeError: Network request failed in custom build (`expo run`)
I'm using Expo + Supabase and recently switched from Expo Go to a custom development build using:
npx expo prebuild
npx expo run:ios
Since I'm using custom native modules that aren’t supported in ...
0
votes
1
answer
465
views
Supabase Realtime subscription not working with custom JWT and RLS in Next.js + NextAuth setup
I'm building a website using Next.js, NextAuth, and Supabase. I'm not using Supabase's built-in auth — instead, I manage a custom users table and generate custom JWTs using NextAuth during sign-in.
In ...
0
votes
0
answers
71
views
Is it possible to have supabase-js download only the first frame of a video to make a thumbnail?
So, I'm developping an easy interface for my client, so they can make content for an app that use supabase as a backend.
Amoung the types of contents, their is stuffs that require my client to upload ...
0
votes
0
answers
142
views
Login is possible but my supabase user / session is not "authenticated", GoTrueClient getSession() session from storage null
The stack: SvelteKit / Supabase (with docker)
To authenticate the users i followed the supabase tutorial (so my code strictly follows that). It works as i receive the user's data (profile, session...)....
0
votes
0
answers
179
views
Supabase Db Query is super slow with simple test query using service role
A Simple db query in a table with just 2 rows takes atleast 12 seconds, sometimes timeout!
What is the mistake in my code? My code works so credentials are correct. I don't use Supabase auth, so I use ...
0
votes
0
answers
58
views
Supabase api function not call after switching tab
i have this useEffect in my component file
const loadFeeSettings = async () => {
console.log("1", 1);
const settings = await getMembershipFeeSettings();
console.log(&...
0
votes
0
answers
144
views
How to implement automatic Google Calendar API authentication through supabase without user OAuth flow?
Context
I'm building a React application that needs to interact with Google Calendar API to create events automatically. Currently using OAuth2 which requires user interaction, but I need this to work ...
0
votes
0
answers
27
views
how to regroup some datas under the same label with supabase?
So, I have this table with some datas (in supabase):
data1
data2
data3
data4
1
2
3
4
and what I want is that my supabase.from('table').select('data1,data2,data3,data4') return datas like that:
{
...
0
votes
0
answers
51
views
Vite hotreload breaks supabase client
I'm stuck with a weird problem where the supabase client basically stops working as soon as I had a hot reload happen.
I have a straight forward supabase client setup in a seperate file like this
...
0
votes
0
answers
126
views
Failed to fetch loading "GET" in my Next.js 15 app
I wanted to use Supabase for both auth and general database interaction in my Next.js 15 app, however when I navigate to some of my dynamic routes, and even some that aren't dynamic but still use ...
0
votes
0
answers
305
views
Why is my Supabase Password Reset in React not verifying the session correctly?
I am working on a password reset feature for a flutter application. It sends the user an email which sends them to a website which should handle the password reset. However, I am having issues with ...
0
votes
0
answers
38
views
Supabase js query filtering
I'm trying to make a query, and it keeps bringing something that I don't want.
I have a db with users, each user has contracts. Those contracts could be active or past due. When I try to search for ...
1
vote
1
answer
245
views
Why would the Supabase client cause a MiniOxygen error with "dev" script but work with "preview" script?
In my up to date shopify hydrogen/remix app, I am trying to import the supabase-js package into my server.ts or specific route. When I initialize the createClient function, then run the "shopify ...
0
votes
1
answer
48
views
PostgREST API - mutiple OR conditions. Is it possible?
I'm trying to create a query using PostgREST API with multiple OR conditions.
Essentially I need PostgREST query similar to this SQL query
SELECT * FROM people
WHERE condition1 AND (condition2 OR ...
0
votes
0
answers
34
views
What's the trick for Apple Sign In Auth on WebApp? Results in error
Based on the Supabase docs, & Configuration tool, I have setup the following to allow for Apple Sign In on web app:
Account ID: 10 Characters
Service ID: com.my.webapp.service - setup to allow ...
0
votes
1
answer
4k
views
I have a Next js 15 Console Warning: "Error: Route"/" uses cookies().get , cookies() should be awaited before using its value"
i have this Next js version with supabase :
"@supabase/auth-helpers-nextjs": "^0.10.0",
"@supabase/supabase-js": "^2.48.1",
"next": "15.1.6",...
0
votes
1
answer
676
views
How to correctly get data from supabase?
I have created a table in supabase called blogposts, and have added couple of rows.
Here is what the columns look like:
id
title
description
date
views
readingTime
imageUrl
author
I have created ...
0
votes
1
answer
56
views
ES Code in Twilio Function (Console UI) fails with Unexpected token 'export' error. Code in CommonJS works. Why?
This is the code using CommonJS that works:
const { createClient } = require('@supabase/supabase-js');
exports.handler = async (context, event, callback) => {
const supabaseUrl = '...
0
votes
0
answers
51
views
How to use Supabase DB Functions in Javascript Client API using Select Query?
My Goal is to get the coordinates in human readable form without using a seperate request as follows.
supabase.rpc('fn')
I have a table named live_route and it is linked to an other table named ...
1
vote
2
answers
281
views
How do I persist the the user with supabase using nextjs?
import { createClient } from "@supabase/supabase-js";
export const supabase = createClient(
process.env.NEXT_PUBLIC_SUPADB_URL || "",
process.env.NEXT_PUBLIC_SUPADB_API_KEY || ...
0
votes
1
answer
142
views
React/Supabase Response types for complex queries not working with filter
I am using React with Typescript and Supabase. To create a type from a complex query I use the schema provided by supabase like this:
import { QueryResult, QueryData, QueryError } from '@supabase/...
1
vote
0
answers
179
views
Supabase - new row violates row-level security policy
I have created a simple app with vue.js frontend and an express.js backend. It has a login that works properly and in the databse I can see one user and his ID. I have enabled row level security for ...
0
votes
0
answers
78
views
Realtime issue with supabase custom oauth integration
I have a project in supabase for a react native mobile client. I use a custom oauth flow where a service called autolab manages all my auth and gives me a token which I then convert into my own jwt on ...
0
votes
1
answer
157
views
Supabase Error: more than one row returned by a subquery used as an expression
I have two tables bands_profiles and bands.
I'm trying to get all bands that a user is part of.
The JS query I've written is
const usersBands = await supabase
.from("bands_profiles")
...
0
votes
0
answers
35
views
How to stop rerouting due to onAuthStateChange() call for updateUser()
Ques
How to updateUser() without moving away from the registration screen if subscribed to onAuthStateChange() ?
I want to reroute when Auth User changes on login & logout, but I dont want to ...
0
votes
0
answers
292
views
supabase Import createClient produces: unable to resolve module specifier
Created a new VS Code project with a blank HTML file added a button to it (to activate a database request for this test)
Got a supabase account, created database/tables no problem, installed supabase ...
1
vote
0
answers
132
views
Webhook event for new user created on Supabase
I am currently working on fintech mobile application with Supabase and my backend. Is it possible that to have an event triggered when a new user is created. i want to use supabase Edge functions to ...
0
votes
0
answers
61
views
Cannot get Supabase to intitialize on simple web page
I have this code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, ...
0
votes
0
answers
55
views
Authenticating Mobile Users on a Next.js Server with Supabase and RLS Policies
I am using the Supabase signup method to authenticate users in a mobile app. I want to make API requests to my Next.js server, where I also use the Supabase SDK to interact with the database. I have ...