66 questions with no answers
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 ...
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
64
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 ...
0
votes
0
answers
142
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
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
122
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
348
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
135
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
170
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
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
...
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
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 ...
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
0
answers
291
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 ...
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
821
views
Supabase ANON API_KEY JWTs missing sub claim causing 401 error from auth API (https://<myinstance>.supabase.co/auth/v1/user)
I'm using supabase-js client library to handle GitHub OAuth authentication in my nextjs 13 frontend app:
// Login with GitHub
const { data, error } = await supabase.auth.signInWithOAuth({
provider: '...
0
votes
0
answers
191
views
My supabase API key is not importing in Nextjs application (No API key found in request)
I am working on Nextjs project with supabase client, when am trying to make api call to supabase client it show Unauthorize message.
Supabase Create Client Code:
import { createClient } from '@...
2
votes
0
answers
324
views
uploading media files in supabase storage bucket with clerk authentication
I'm trying to upload images to Supabase storage from a React Native Expo app. The images are first compressed using expo-image-manipulator, but the upload fails with:
ERROR Error uploading images: No ...
3
votes
0
answers
471
views
how to persist session in Playwright using supabase
I have an application, where i am using supabase as auth provider. Now i want to setup E2E testing using playwright. I got a setup test, which will run before each test:
//auth.setup.ts
import { test ...
0
votes
0
answers
822
views
How to perform a LEFT JOIN in Supabase JS?
I want to perform the following SQL query with the Supabase JS Client Library:
SELECT *
FROM users u
LEFT JOIN follows f
ON u.id = f.followed_id
AND f.follower_id = :some_id
WHERE f.followed_id IS ...
5
votes
0
answers
530
views
Supabase JS, Joins without explicitly defining foreign and primary keys on Schema Level
I want to Run the following query using SupabaseJS
select
inspection_part.serial_no,
inspection_part.part_name,
inspection_part.requested_date_time,
inspection_part.completed_date_time,
...
1
vote
0
answers
255
views
Not able to fetch Signed in user from Supabase after google Oauth Sign in
I am using Supabase OAuth for google sign up in my project. Below is the code where I have specified the redirect URL:
const { data, error } = await supabase.auth.signInWithOAuth({
...
2
votes
0
answers
226
views
Self Hosting Supabase: Twitter Provider Oauth issue
how can i use twitter on self hosting instance on supabase? I read the docs but i don't found anything related to that concept. Also i look the docker compose and env files and i don't find any ...
1
vote
0
answers
162
views
Supabase auth state lags behind when used in Root Layout (Next.js App router)
I've encountered an unusual behavior in my Next.js app (latest version, using App Router) integrated with Supabase Auth. I'm leveraging the Supabase auth state to conditionally render login/logout ...