2,201 questions
Advice
1
vote
0
replies
35
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 ...
-1
votes
0
answers
52
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 ...
-1
votes
0
answers
29
views
prisma p1001 error - Can't reach database server at `aws-1-ap-south-1.pooler.supabase.com:5432`
This is the schema in my prisma.schema:
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
...
0
votes
0
answers
45
views
How to return a non Never type in supabase.rpc?
I created a pgsql function in Supabase and tried to connect my VSCode with the function in order to upload data onto Supabase.
My code:
const { data, error: uploadError } = await supabase.rpc('...
1
vote
1
answer
53
views
Supabase session expired after some hours can't retrive user id from Flutter app
I am trying to get the userId from the current user session. It works when a user logged in, but after some hours if app inactive the function can't retrieve the userId from the session?
My code - ...
0
votes
1
answer
200
views
Can't insert rows into Supabase profile table even after creating the RLS policy to do so for the sign up feature
I am quite new to Supabase.
Basically, I am doing auth using Supabase and have this table called "profiles" with columns:
id - UUID
username - text
email - text
Now when I create a new ...
0
votes
0
answers
35
views
How to create a vecs client using a Google Cloud connector based SQLAlchemy engine
I am trying to use vecs this library here and GitHub page but I have a big issue. When trying to create a vecs client it needs only the connection string Client(connection_string="...
0
votes
0
answers
31
views
Supabase Flutter: user is still logged in when on password recovery flow and closes the app
Im currently working on my password reset flow and I use resetPasswordForEmail to send an email with a deeplink redirecting to my app's reset password page. My problem is that when a user closes the ...
0
votes
0
answers
104
views
How to set up subdomain-based multi-tenancy with Next.js, Supabase (DB/Auth), and next-intl?
I’m trying to build a multi-tenant platform similar to how Sentry works, where the root domain (e.g. https://sentry.io/en) serves the marketing site, and each tenant has its own localised subdomain (e....
1
vote
0
answers
70
views
Supabase GoTrue Ignores Custom Email Templates on Docker / Coolify
I'm running a self-hosted Supabase instance on Coolify using Docker Compose. I'm trying to override the default GoTrue email templates with my own custom HTML files, but GoTrue consistently ignores ...
0
votes
1
answer
119
views
How to verify JWT tokens from Supabase in ASP .Net Core Web API?
I am trying to use supabase auth in my React with TypeScript and Vite frontend and it works there but when I try to access the API it is not able to verify the token and I do not undestand why? Is ...
0
votes
0
answers
46
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
186
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 ...
1
vote
1
answer
398
views
Permission denied despite correct RLS, as supabase.auth.getUser() returns null on server
I'm building a Next.js 14 (App Router) application using Clerk for authentication and Supabase for the database. Despite following the latest integration guides, I'm stuck on a persistent 42501 ...
0
votes
1
answer
207
views
App not fetching any data from Supabase, only after the session expires hours later [closed]
I'm building a React Native app with Expo and Supabase auth and I'm experiencing issues where:
The app works perfectly after sitting unused for 2+ hours
As soon as I reload/restart the app, the app ...
0
votes
1
answer
221
views
Getting Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again
This is the error it's giving when I run npm run build:
ml@M-----MacBook-Air skyfold.dev % npm run build
> [email protected] build
> next build
▲ Next.js 15.4.6
- Environments: .env
...
0
votes
0
answers
162
views
React + Supabase web app issues on iPhone and Safari browser
I am building a web app using React for my frontend and Supabase for the database, auth and also edge functions. Using Supabase auth, I have implemented reset password logic which works well when I ...
0
votes
1
answer
43
views
Filter based on an array in react admin
I am using react admin and I have a view that contains a column which has a bunch of ids [1, 2, 3] and I have an id based on which I want to filter.
<List
resource="view"
filter={...
0
votes
0
answers
60
views
How to make changes to database schema directly within VSCode
I am building a software with NextJS and Supabase.
What is the easiest, most efficient way of managing my database schema within VSCode.
For example, instead of going to the Supabase backend to write ...
1
vote
1
answer
119
views
How to enable pgaudit to log RPC function queries in PostgreSQL running inside Docker (Supabase local)?
I'm running a local PostgreSQL database inside a Docker container as part of a Supabase self-hosted setup.
I want to log all internal SQL statements (query mainly to see what generated after RPC ...
1
vote
1
answer
186
views
Supabase: Getting "role 'user' does not exist" error only when authenticated user queries product/category tables
Supabase: Getting "role 'user' does not exist" error only when authenticated user queries product/category tables
Problem Summary
I'm experiencing a strange issue with Supabase where:
When ...
0
votes
1
answer
87
views
Python Supabase: Unable to update user password
I'm trying to reset the password of an already registered user, which is currently not authenticated. I wrote a simple Python script which is based on:
defining a supabase client object
sending a ...
0
votes
0
answers
48
views
StorageException - row-level security policy Supabase
i'm building a flutter login/signup app using supabase. but i'm encountring this exception when i'm uploading image to storage.
Here is the part where i'm uploading and getting error
File? ...
0
votes
0
answers
37
views
Next.js App Router prerender-error: ReferenceError: self is not defined when building /dashboard page using Supabase auth
I’m using Next.js 15.3.5 with the App Router and Supabase’s Auth Helpers.
When I run npm run build:
Next.js 15.3.5
…
Compiled successfully in 19.0s
Linting and checking validity of types
Collecting ...
0
votes
1
answer
55
views
Stackblitz and supabase - can't get .env to work
Using the sveltekit starter on stackblitz, I've installed the supabase package.
In the root directory I have a .env file with SUPABASE_URL and SUPABASE_KEY and the values are filled in.
In src/lib/...