223 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-3
votes
0
answers
44
views
Supabase, Unexpected end of JSON input Error While uploading img file to storage [closed]
Trying to upload a image file(png) to Supabase Storage Using the code below.
import fs from 'fs'
import { createClient } from '@supabase/supabase-js'
import 'dotenv/config'
const supabase = ...
0
votes
1
answer
72
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
83
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
102
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 ...
0
votes
0
answers
55
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
241
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
167
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
70
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
243
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
88
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
331
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
327
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
162
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
73
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
212
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-...