86 questions
0
votes
0
answers
19
views
AuthRetryableFetchException + HandshakeException after app resumes from long background (Flutter, supabase_flutter ^2.10.3)
After the app stays in the background for 6–8 hours or overnight, all Supabase requests fail with:
AuthRetryableFetchException(message: HandshakeException:
Connection terminated during handshake, ...
1
vote
1
answer
54
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
0
answers
32
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 ...
1
vote
0
answers
75
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
0
answers
49
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? ...
1
vote
0
answers
62
views
Flutter Supabase Google Authentication Session is not saving
In my flutter app, the user has two options. auth with email and auth with google. if you choose email there is no problem but if you choose google you can pass auth part but when you close the app ...
0
votes
1
answer
117
views
Not being able to query my table using Supabase´s auth.uid as a foreign key
I´m developing an app using flutter, and I want to retrieve some user info based on the uuid of the authenticated user. I´m using RLS like this right now:
alter policy "Enable users to view their ...
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
1
answer
94
views
Flutter Supabase authentication login signup - email showing wrong redirect address
I'm having problems with my Flutter app and the Supabase email authentication sign up with Android.
My Flutter code is
String _getSignUpRedirect() {
if (kIsWeb) {
return 'https://eisgd.com'...
1
vote
1
answer
72
views
Flutter Supabase: SignOutScope.others and SignOutScope.global not logging out other devices
I'm using Supabase authentication in a Flutter app and trying to implement three logout options:
Log out from this device only.
Log out from all other devices except this one.
Log out from all devices ...
0
votes
0
answers
69
views
Problem with supabase_flutter when creating row in self hosted supabase instance
Bug report
Description
Content-Type not acceptable: application/json; charset=utf-8, code: PGRST102, details: Bad Request, hint: null (supabase flutter, self hosted)
Code:
createMessage() async {
try {...
2
votes
1
answer
188
views
Not able to sign out in Flutter Supabase app
I'm new to Flutter and currently building an app using Supabase for authentication.
Everything works fine like user registration, sign-in, etc., but I'm facing an issue with sign-out.
When I press the ...
0
votes
0
answers
30
views
Open question in the Supabase pricing system?
For a new Flutter project, I want to use Supabase as the backend. Unfortunately, two questions have arisen. I'm using the SDK provided by Supabase for Flutter.
Now, when I execute an insert, select, ...
0
votes
1
answer
89
views
Flutter/Supabase auth/Android app - reset password not working
I have a Flutter app that is using Supabase authentication. The app has web and Android versions.
When it comes to the reset Supabase password feature, I can get this to work for web, but not for ...
0
votes
1
answer
48
views
Flutter-Supabase auth - error with reset password
I have a Flutter web app that is using Supabase and the Supabase authentication service.
I have a problem with the "reset password" feature. Something like this:
1). The user initiates the '...
0
votes
0
answers
57
views
Update User with Automatic Linking & OAuth
I am getting this error when attempting to update a user's email when that user is logged into multiple sign in methods (email + OAuth). I do not want to turn on Manual Linking as I like that users ...
2
votes
1
answer
409
views
Flutter - Check if user exists in Supabase Auth
I can’t solve this problem with Supabase and Flutter.
I sign up a user using the Supabase Flutter package :
await Supabase.instance.client.auth.signUp(
email: email,
password: password)...
0
votes
2
answers
83
views
Why am I getting "The operator '[]' isn't defined for the type 'Future<Map<String, dynamic>>' "
I am trying to fetch a single row of data from Supabase using the following code:
// supabase_service.dart
Future<Map<String, dynamic>> fetchTransaction(int id) async {
return await ...
0
votes
1
answer
187
views
How to check for internet connection before trying to init Supabase? [duplicate]
I'm looking to add an 'Internet connection checker' to my Flutter app (i.e. web & Android), but there would seem to be a contradiction between where the typical internet connection checker widget ...
1
vote
1
answer
335
views
Using the row item from Supabase backend query in FlutterFlow generates error
I'm trying to build an app on Flutterflow using a Supabase Realtime table.
This is not the final app, I was just trying the realtime feature with the timer, which is mandatory for the final app.
I ...
0
votes
0
answers
44
views
Timestamp triggered notifications to app?
I'm building a Flutter app that uses Supabase as the backend. One aspect of the app requires that a server-side process check to see if certain actions are required at a specific date/time. What I'd ...
0
votes
0
answers
55
views
Authenticating Mobile Users on a Next.js Server with Supabase and RLS Policies
I am using the Supabase signup method to authenticate users in a mobile app. I want to make API requests to my Next.js server, where I also use the Supabase SDK to interact with the database. I have ...
0
votes
2
answers
142
views
Why am I getting a Null error without a null value?
I am trying to access a foreign-key field in a Supabase database using Flutter. None of the table rows has a null value when I view them on the Supabase dashboard, however, when I run my app in the ...
0
votes
1
answer
59
views
How to set-up an insert from select call?
I am looking to insert data into a Supabase table using a select as the source. Something like:
INSERT INTO foo (x, y)
SELECT x,y from widget where date > '12-12-2023';
However, I can find out a ...
0
votes
2
answers
1k
views
supabase error when trying to upload my file
when i try to upload my file into supabase which i'm locally hosting i get this error below:
Failed to upload Australia.pmtiles: tus: unexpected response while creating upload, originated from request ...
0
votes
1
answer
71
views
Cannot upload data to database in supabase
I am using Flutter and learning Supabase. It is now getting frustrating as there is no response or exception mechanism. I am using the following code, Note: The user is being signed up and signed in ...
0
votes
1
answer
1k
views
how to access auth.users table for functions trigger
I need some help with supabase triggers. I am trying to follow along with this tutorial here, however I can't seem to figure out how to access the auth.users table, as it seems to be protected.
When I ...
1
vote
0
answers
80
views
Flutter riverpod generator: The argument type 'Object?' can't be assigned to the parameter type 'RouterDelegate<Object>?'
I am trying to follow along with this tutorial/project here supabase_riverpod_minicourse.
It involves making some auto generated providers. dart run build_runner watch -d and it seems to work ok.
...
0
votes
1
answer
102
views
How to implement handling of environment with flutter/supabase?
I started with flutter and chose supabase as my backend for some reasons. I can use 2 projects there. So I wanna use one for development/test and one for production later. How should I implement the ...
0
votes
1
answer
374
views
Flutter Supabase client - query on jsonb array of json objects not working
I have a Flutter web app that is querying a Supabase database via the Flutter Supabase client library.
One of my queries is not working when I try to query a jsonb column called 'tags' that holds an ...
0
votes
1
answer
173
views
Fetching Supabase data with Dart (Flutter)
I'm using Supabase for data storage in my store application, which I'm developing with Dart (Flutter). In my database, I have two tables named product and product_image, where the product_image table ...
0
votes
1
answer
82
views
Favourite Item: flutter and supabase
I have a tables in my supabase database called properties, profile and saved.
The schema for the tables looks like this:
properties
id int8 (pk),
created_at timestamptz,
description text,
...
1
vote
1
answer
352
views
Flutter Supabase Auth signUp Error: _asyncStorage != null: You need to provide asyncStorage to perform pkce flow
I'm working on a Flutter app and using Supabase for authentication. When I try to sign up a user using email address, I encounter the following error:
'package:gotrue/src/gotrue_client.dart': Failed ...
0
votes
1
answer
693
views
Supabase and problem with fetch data - problem with read data
I have I think a simple problem but I cannot find the solution for that ...
I use library supabase_flutter
All elements are configured like anonKey and url.
I have this code:
import 'package:flutter/...
1
vote
2
answers
809
views
How to Implement Stream on RPC Functions for Flutter Supabase?
I'm currently working on a Flutter project using Supabase as the backend. I'm trying to implement a stream on RPC (Remote Procedure Call) functions to receive real-time updates, but I'm facing issues.
...
0
votes
0
answers
287
views
Fetching From Prepopulated Supabase Table Returns Empty Array
This is my first time using supabase realtime, I want to access values in my table in real time and also update them with interactrions from the app. I prepopulated the database in supabase but when I ...
1
vote
1
answer
689
views
How to fetch data from Supabase to Flutter App
I have a problem
I dont know how to fetch data from Supabase table to my Flutter App.
And yes I'm newbie in Supabase ;) ...
Ok, so I have this code:
class _ProductInfoPageState extends State<...
0
votes
1
answer
173
views
Response.data/Response.error Issue. Not defined for type 'Map<String, dynamic>'
I's working on an app that retrieves data from a flutter database but I'm having issues with my fetch queries.
Fetch method:
void _fetchUserData() async {
// Assuming you store the current user ...
0
votes
0
answers
1k
views
Error handling in Flutter connecting to Supabase
I am just new to Flutter as well to Supabase and I'm wondering if there is a way to check if the database exist or it is connected during initialization like other PL or Scripting languages to connect ...
0
votes
1
answer
131
views
Listening to table inserts in supabase within radius of user location in Flutter
I have a table in Supabase which has reported_location column. I want to listen to inserts in Flutter within a given radius.
I am using the code below but it isn't working.
late RealtimeChannel ...
1
vote
0
answers
398
views
Use arbitrary OpenID provider in flutter supabase
I am using supabase and flutter and I need to implement SSO with an OpenID (OIDC) provider that is not supported out of the box from supabase. As Facebook and some other standard providers use OIDC ...
1
vote
1
answer
77
views
Getting values from 2 tables in Supabase and storing in a Flutter data model
How do I properly save the returned results of Supabase from 2 tables in a Flutter class. Here are the sql statements that created the 2 tables:
-- Table for Survey Categories
CREATE TABLE categories ...
0
votes
1
answer
230
views
TypeError: null being thrown by the Builder in Flutter
In a Flutter Web Application, I was trying to print the results of a Supabase query. The results are printed but only after a short flicker/red screen which is due to an error that is printed in the ...
0
votes
1
answer
212
views
Creating and using a Model and Repository in Flutter issue
As a newbie in Flutter, I am trying to create a class and its corresponding repository for a Question type. I found a sample pattern here but it seems deprecated as shown below:
class Note {
final ...
1
vote
1
answer
159
views
How to declare and save the values in a data class in Flutter
I am trying to learn Flutter and Supabase and still trying to learn its concepts coming from imperative programming. I am trying to save the returned results from the database query. Here are my ...
0
votes
2
answers
396
views
When using supabase_flutter, why am I getting compileSdkVersion is not specified error?
When I attempt to use Supabase flutter in an empty flutter project this happens:
What went wrong:
A problem occurred configuring project ':shared_preferences_android'.
Failed to notify project ...
1
vote
1
answer
1k
views
How to handle the result/s of Supabase queries in Flutter
Related to my previous posting here about Flutter and Supabase, how can I handle the results of my queries using Supabase? It is not clear in the Supabase documentation about handling the returned ...
1
vote
0
answers
169
views
How to implement User Authentication in a locally hosted Supabase for a a Flutter Web App beside the standard Supabase Auth?
As I am new to both Flutter and Supabase, I would like to ask how to implement a user authentication beside the standard Supabase auth. I am working on a Survey Web app project in Flutter that will ...
0
votes
0
answers
199
views
Intellij/Flutter/Supabase edge function - How to suppress warning in TS file
I'm using Intellij as the IDE for my Flutter project.
Part of this project includes a 'Supabase' edge function that has one TS file. The TS file is showing two parsing problems with the TS file
...
3
votes
1
answer
2k
views
Supabase: Invalid JWT after having app running for some time
I am calling
await Supabase.initialize(
url: config.api.url,
anonKey: config.api.anonKey,
);
in my main.dart and later using this code to call an Edge-Function:
final authHeader = Supabase....