227 questions
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 ...
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 ...
4
votes
2
answers
4k
views
How to upload an image from gallery to supabase storage
I want users to be able to pick a profile picture from the gallery using the Image Picker from expo and upload it to supabase in a filename that is structured like this userid.jpeg. I then want to ...
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 ...
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
66
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
1
answer
3k
views
Supabase Functions - trigger when a file uploaded into Storage bucket
I'm looking to create a "pipeline" to manipulate a user's file uploads from a form in my Next.js application.
The files are uploaded into a bucket called user_uploads
I want a Supabase ...
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 ...
1
vote
1
answer
149
views
Supabase sort / filter by relation count
I have the following query:
let query = supabase
.from("property_owners")
.select(
`id, full_name, property(id), address(id, street, house_number, city, zipcode, ...
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 ...
7
votes
8
answers
13k
views
Supabase reset password error: "Auth Session Missing"
The following function fails with error "Auth Session Missing"
const { error } = await supabase.auth.updateUser({
password: password,
});
After getting the reset password link on my mail ...
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",...
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 ...
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
1
answer
1k
views
Supabase delete not working through javascript client api and postman
I'm trying to delete a row in a supabase table via the javascript client api (also tried postman later). Supabase is running on a remote server via docker. I'm working with Next.js, but all cache has ...
2
votes
2
answers
784
views
Can't get variables with supabase status on github actions
When I start supabase locally and run pnpm supabase status -o env I get a nice collection of env vars, like
ANON_KEY="eyJ...CJ9.eyJpc3......MTI5OTZ9.CRXP1A7WOeo....I0"
API_URL="http://...
3
votes
1
answer
756
views
How to link supabase table with foreign key to User Data, using NestJS and typeorm?
I just create a Supabase DB using NestJS and TypeORM. I have some entities like this:
@Entity()
export class UserService {
@PrimaryGeneratedColumn()
id: number;
@OneToOne(type => User)...
0
votes
1
answer
310
views
How to filter on text array column with supabase-js
I have a table i Supabase which looks like this:
I want to use supabase-js client library to filter on phone_numbers (which is a text array).
If I do like this:
const { data, error } = await ...
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 ...
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
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
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
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....
2
votes
1
answer
728
views
Supabase RLS not working with custom JWT token
I am creating a custom JWT token using the supabase edge function with the JWT secret provided in the supabase dashboard.
I have all the required claims in the token as per the docs [here, Custom ...
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
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
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
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(&...
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
2
answers
84
views
Is there any way we can hide the forgot password link in supabase auth ui?
I want to hide the forgot password link that appears when we use supabase auth ui
I am aware of the hide links property and perhaps I could have used that but that hides other links as well, I just ...
1
vote
1
answer
835
views
.or method with 2 different relation tables in supabase js
I have 2 tables as shown below where user table stores the users profile details and friends table which stores the friendship relation between 2 users where sent column links with user who has sent ...
2
votes
1
answer
6k
views
Supabase update with incrementing value
I am using supabase-js and have a table like this:
userID: string
timesVisited: number
eventName: string
I am using update like this:
Admin.from(tableName).update([{userID,eventName,timesVisited}])
...
7
votes
6
answers
9k
views
Supabase "TypeError: fetch failed"
I am making a to-do list application with Supabase and NextJS-13 and while fetching the lists from Supabase, the server gave me this error
Error Image
My List table on Supabase has three columns:
id
...
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 ...
3
votes
1
answer
1k
views
Supabase SELECT with function call
From Javascript, I want to call a function in my supabase select statement (funcition name is id_encode in this example):
const { data, error } = await supabase
.from('table')
.select(&...
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 ...
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 ...