goldyman
12/23/2022, 10:50 PMcoinmaster47
12/24/2022, 1:18 AMFranks
12/24/2022, 4:24 AMElfhild
12/24/2022, 4:49 AMHermes
12/24/2022, 7:48 AMconfig.toml
file but when I try to sign in, it creates the user in the actual supabase project and not my local environment.
[auth.external.google]
enabled = true
client_id = "<same-as-actual-project-client-id>"
secret = "<same-as-actual-project-secret>"
ak4zh
12/24/2022, 8:06 AM{{ .Hostname }}
and possible use different SMTP credentials for each hostname so as to use their custom email address as well.tejas
12/24/2022, 10:06 AMFlorian
12/24/2022, 11:53 AMsignInWithOTP
for password recovery?
I like this approach more because it creates an account if none exists already. And I can reuse my existing signup code.
https://supabase.com/docs/reference/javascript/auth-signinwithotpgaIaxy
12/24/2022, 12:22 PM{
"code": 500,
"msg": "Database error saving new user",
"error_id": "a5430854-c948-485c-b0f6-c1be7203413b"
}
(FOX)
12/24/2022, 12:23 PMEKI
12/24/2022, 1:25 PM49Ryann
12/24/2022, 1:33 PMcreate server stripe_server
foreign data wrapper stripe_wrapper
options (api_key 'sk_live');
Failed to run sql query: foreign-data wrapper "stripe_wrapper" does not exist
Hermes
12/24/2022, 3:20 PMktosiek
12/24/2022, 4:32 PMsupabase start
)? Can I access the mails local gotrue sends?chinds
12/24/2022, 6:00 PMmaxc
12/24/2022, 6:44 PMNULLS NOT DISTINCT
syntax was introduced. However, when trying to use this like so ALTER TABLE foo ADD UNIQUE (bar) NULLS NOT DISTINCT
we get this error Failed to validate sql query: syntax error at or near "NULLS"
. Is this expected?
Alternatively if the query is ALTER TABLE foo ADD UNIQUE NULLS NOT DISTINCT (bar)
then we see the same validation error.
Note that SELECT version()
yields PostgreSQL 15.1 on aarch64-unknown-linux-gnu, compiled by gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0, 64-bit
as provided by Supabase.Florian
12/24/2022, 7:07 PMawait supabaseClient?.auth.getSession()
right after app start, can there be a race condition because the session hasn't loaded yet, or will this function return after loading has finished?Cazineer
12/24/2022, 8:07 PMR4Y
12/24/2022, 8:11 PMPedro Fernandes
12/24/2022, 9:14 PMmikeladion
12/24/2022, 9:14 PMKeith
12/24/2022, 9:16 PMconst { data, error } = await supabase
.from("playgroups")
.select(`
*,
owner (
id,
name
)
`)
.eq("id", id);
It always is returning the column owner as null
.
The following SQL works just fine:
SELECT
playgroups.name AS playgroup_name,
users.name AS owner_name
FROM playgroups
JOIN users ON playgroups.owner=users.id;
I can also see the relation is setup and working within the Supabase dashboard.
Any chance anyone can spot what I am doing wrong here?
Thanks for the help!Ethos
12/24/2022, 10:00 PMNin
12/24/2022, 10:45 PMeben
12/24/2022, 11:13 PMCrownie
12/24/2022, 11:25 PMsupabaseClient.auth.setAuth(req.header.get("Authorization"))
receives an image with a description as body
compresses the image,
upload the image on the bucket / and the post info in a table
is this possible? ( i heard you can't use npm packages, in deno so i don't know how to compress the image. ) and is there an easy way to implement this?Florian
12/25/2022, 7:05 AMFlorian
12/25/2022, 9:39 AMsignInWithOtp
failed because the user already exists?(FOX)
12/25/2022, 9:46 AMsql
CREATE POLICY "if is admin" ON "public"."archive"
AS PERMISSIVE FOR ALL
TO public
USING (users.role() = "supabase_admin")
I try to if user has role supabase_admin he reach every action .Hermes
12/25/2022, 10:09 AM