damonrand
02/27/2023, 1:39 PMfinal UserResponse res1 = await supabase.auth.updateUser(
UserAttributes(
password: 'mypassword1234',
),
);
This gives AuthException(message: Not logged in., statusCode: null)
I can't figure out how to get the Flutter code to take my Bearer token.
Out of the box ideas welcome as well!Vimes
02/27/2023, 2:10 PMjs
const { data: profile, error } = await supabase
.from("profiles")
.select(`id, first_name, last_name, organization(name, umbraco_id, umbraco_url).single()`);
ctulek
02/27/2023, 2:46 PMjfbn
02/27/2023, 4:57 PMraw_user_meta_data
on the auth.users table contains any identifications, such as google
or facebook
. This feels like a hacky workaround.
I just want to create an entry in my profile
table that also contains their name, which is available in the raw_user_meta_data
Řambo
02/27/2023, 5:36 PMhttp://localhost:5173/#
fredguest
02/27/2023, 6:08 PMVince
02/27/2023, 6:15 PMimport { createClient } from "@supabase/supabase-js";
const supabase = createClient(
...
)
export { supabase };
In my nodejs backend code, I tried importing it as:
const supabase = require("../../../../../lib/supabase");
In the logs it gives me this error:
Cannot find module '../../../../../lib/supabase
I'm sure I correctly set the path in my export but I haven't figured this out. I tried the ES6 import method as well, same thing.
Tried import { supabase } from "../../../../../lib/supabase.js";
, same thing
Any idea how I should properly import it?
Edit: I'm aware that the module is written in ES6 and I should rewrite it into commonjs just not sure how to rewrite the "createClient" importsalzar
02/27/2023, 6:20 PMEnrico
02/27/2023, 6:42 PMCubeX Tuugel
02/27/2023, 7:27 PMstillmotion
02/27/2023, 7:28 PMauth-helpers-nextjs
for authenticating the API endpoints. I'd like my iOS app to access those same endpoints, however, I need to construct a "supabase-auth-token" cookie with a json payload in order for the auth-helpers-nextjs
middleware to correctly process the request. This seems a bit complex, since I have already fetched a session JWT on the iOS client and can send it as a bearer token header. What can I use on the server side to construct a valid Supabase client based on that JWT?Julien
02/27/2023, 8:17 PMpostgresql
CREATE TRIGGER my_trigger_name
AFTER INSERT OR UPDATE
ON public.my_table_name
FOR EACH ROW
EXECUTE PROCEDURE public.my_function_name();
But this not:
postgresql
CREATE OR REPLACE TRIGGER my_trigger_name
AFTER INSERT OR UPDATE
ON public.my_table_name
FOR EACH ROW
EXECUTE PROCEDURE public.my_function_name();
I get the following error: ``Failed to validate sql query: syntax error at or near "TRIGGER"``Grimmjoww231
02/27/2023, 8:22 PMolinelson
02/27/2023, 8:45 PMTrey
02/27/2023, 9:03 PMerror RequestInit: duplex option is required when sending a body
Does anyone happen to know of a fix for this?Xyo
02/27/2023, 9:06 PMRyan the Temp
02/27/2023, 10:16 PMjobs
in the js client, I can do:
client.from('jobs').insert(jobData)
if my jobs table has a column called createdBy
, do I need to populated that using the .insert
operation? or is that something that should be done on supabase side via a trigger?ryanT
02/27/2023, 10:31 PMexport default function supabaseLoader({ src, width, quality }) {
return `https://${
process.env.NEXT_PUBLIC_SUPABASE_STORAGE_HOSTNAME
}/storage/v1/render/image/public/${src}?width=${width}&quality=${quality || 75}&transform=contain`;
}
Here is how I'm rendering the image:
<Image
alt="logo"
height={0}
priority={true}
src={`${getOrgAssetsUrl(orgId)}/org-logo.png`}
width={LOGO_WIDTH}
/>
Kelvinauta
02/28/2023, 12:48 AMKelvinauta
02/28/2023, 1:16 AMYourAverageTechBro
02/28/2023, 2:10 AMlecookie
02/28/2023, 2:37 AMVimHax
02/28/2023, 3:00 AMCrow
02/28/2023, 3:12 AMCaught exception when connecting to https://lleqxeylhpehibciywmv.supabase.co/.well-known/openid-configuration for issuer https://lleqxeylhpehibciywmv.supabase.co. Please try again later. Error: Invalid issuer: https://lleqxeylhpehibciywmv.supabase.co. Issuer must have a valid discovery endpoint ended with '/.well-known/openid-configuration'
What should I be using as my issuer URL? I also attached a screenshot of what the Auth0 JWT authorizer configuration would look like in API GW.
Thank you for your time.sergiofra98
02/28/2023, 3:46 AMsupabase.co/storage/v1/object/bucker/image.jpg
worked on uploading the file, its detected as an octet-stream, i cant seem to find how to set the file MIME type, any ideas?Noah Burroughs
02/28/2023, 4:14 AMKevin Cantrell
02/28/2023, 7:29 AMBladeRunner_K
02/28/2023, 7:52 AMx-www-form-urlencoded
2. I can force a launchURL action to open browser, but that’s dumb. Stupid dumb.
3. Even then, I’m stuck at the token exchange. How in the world to actually capture the ‘code’ value in the browser and pass it as a param. What does supa do? How does it do it where’s it stored how do I send the last POST request etc.keks
02/28/2023, 10:17 AMPushTimeoutException
. For the table I enabled realtime in the table properties. When only using broadcast channels, my understanding is that it should work out of the box or do I have to create the channels somewhere?
Here is the code I use to listen to broadcasts:
cs
// client is the SupabaseClient, logged in and I do DB queries with it successfully
var rtClient = await client.Realtime.ConnectAsync();
var channel = rtClient.Channel("any");
broadcast = channel.Register<PrefBroadcast>();
broadcast.OnBroadcast += ChannelOnOnMessage;
await channel.Subscribe();
Edit:
Listening for table changes works from typescript.
For completeness, here is my attempt to listen to table update events:
cs
await client.Realtime.ConnectAsync();
var prefTable = client.From<Preferences>();
var channel = await prefTable.On(Client.ChannelEventType.All, PrefUpdate);
await channel.Subscribe();
Painini
02/28/2023, 11:28 AM