226 questions
Advice
1
vote
0
replies
37
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
2
answers
303
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
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 ...
2
votes
1
answer
76
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
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
1
answer
139
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 ...
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 ...
1
vote
0
answers
226
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 ...
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 ...
3
votes
1
answer
751
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
293
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
47
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
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
111
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
163
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
1
answer
109
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
68
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
302
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
56
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
2
answers
83
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 ...
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}])
...
0
votes
0
answers
137
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
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
...
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
1
answer
41
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 ...