laubonghaudoi
01/09/2023, 6:06 AMsupabase/auth-helpers
and I submitted a bug here https://github.com/supabase/auth-ui/issues/96
So after a user signup, there will be a message Check your email for the confirmation link.
, also in the password reset step there is Check your email for the password reset link
. I am unable to modify the content of these text elements nor style them, even by changing the messageText
and messageTextDanger
in the ThemeVariables
. How to modify and style these messages?decruz
01/09/2023, 6:19 AMnahtnam
01/09/2023, 8:42 AMflapili (FR, bad EN)
01/09/2023, 9:04 AMkarankartikeya07
01/09/2023, 9:16 AMMaGnezij
01/09/2023, 10:02 AMquick_piper15
01/09/2023, 12:26 PMlegousk
01/09/2023, 12:54 PMtravyXBT
01/09/2023, 12:59 PMbaddoh99
01/09/2023, 2:10 PMGero
01/09/2023, 2:19 PMgaryaustin
01/09/2023, 2:30 PMRoko
01/09/2023, 3:43 PMnew.id
in functions? I'd like to have policy similar to this:
NOT(select 1 from public.project_staff where project_id = new.id and role_id = 3)
Meaning if there is no role_id=3 for this project - allow insert.
I'm trying to allow insert into a table only if there is no row existing with specific conditions yet. Basically triggering initial row insert. Any other attempts to insert should be satisfying some other row policy.lake_mattiato
01/09/2023, 3:59 PMjs
import { serve } from "https://deno.land/std@0.131.0/http/server.ts";
import Stripe from "https://esm.sh/stripe?target=deno";
import { createClient } from "https://esm.sh/@supabase/supabase-js@1.35.5";
const stripe = Stripe(Deno.env.get("STRIPE_KEY")!, {
httpClient: Stripe.createFetchHttpClient(),
});
const supabase = createClient(
Deno.env.get("SUPABASE_URL")!,
Deno.env.get("SUPABASE_SERVICE_ROLE_KEY")!
);
serve(async (req) => {
const { record } = await req.json();
const customer = await stripe.customers.create({
email: record.email,
metadata: {
supabase_id: record.id,
},
});
const { data, error } = await supabase
.from("user_data")
.update({
stripe_customer_id: customer.id,
})
.match({ id: record.id });
console.log({ data, error, customer });
return new Response(JSON.stringify({ customer_stripe_id: customer.id }), {
headers: { "Content-Type": "application/json" },
});
});
but when i try to deploy the edge function supabase functions deploy create-stripe-customer --project-ref SECRET
I get the following error:
Error: Error bundling function: exit status 1
file:///src/index.ts
error: Uncaught (in promise) Error: Relative import path "http" not prefixed with / or ./ or ../
const ret = new Error(getStringFromWasm0(arg0, arg1));
^
at __wbg_new_8d2af00bc1e329ee (https://deno.land/x/eszip@v0.30.0/eszip_wasm.generated.js:312:19)
at <anonymous> (https://deno.land/x/eszip@v0.30.0/eszip_wasm_bg.wasm:1:79439)
at <anonymous> (https://deno.land/x/eszip@v0.30.0/eszip_wasm_bg.wasm:1:1388039)
at <anonymous> (https://deno.land/x/eszip@v0.30.0/eszip_wasm_bg.wasm:1:1862894)
at __wbg_adapter_18 (https://deno.land/x/eszip@v0.30.0/eszip_wasm.generated.js:146:6)
at real (https://deno.land/x/eszip@v0.30.0/eszip_wasm.generated.js:130:14)
Renan Ferreira
01/09/2023, 4:26 PMpostgres
user does not have superuser
permissions anymore, I'm unable to update the schemas available to " PostgREST". Any attempt to change the authenticator
user results in:
sql
Failed to run sql query: "authenticator" is a reserved role, only superusers can modify it
I have reported this problem in this discussion:
https://github.com/supabase/supabase/discussions/9314#discussioncomment-4469017
And created the following issue:
https://github.com/supabase/supabase/issues/11167
Is this a use case that Supabase cloud will not support?
Thanks in advancesudoDeznit
01/09/2023, 4:46 PMdexsnake
01/09/2023, 4:48 PMkresimirgalic
01/09/2023, 5:47 PMconst { data, error } = await supabase.auth.signInWithOtp({
phone,
});
- then i verify the code
const { data, error } = await supabase.auth.verifyOtp({
phone,
token,
type: 'sms',
});
- after that in my app i ran through setup profile where i enter my email and store it like this:
const { data, error } = await supabase
.from('profiles')
.upsert(values)
.select()
.single();
await supabaseAdmin.auth.admin.updateUserById(data.id, {
email_confirm: true,
email: values.email,
user_metadata: {
is_onboarded: true,
},
});
- in setting i tried both ways to disabled email confirmation, and also tried to manually add property email_confirm: true but every time i try login with google, i am getting the error that i cant save new user in database, probably because i already have that user in auth
from docs, accounts with same email should be one account and should use one email and login inside the app.
can you help me with this?syeonlove
01/09/2023, 6:09 PMhttp://localhost:3000/#error=unauthorized_client&error_code=401&error_description=Email+link+is+invalid+or+has+expired
Is there a list of Supabase auth error codes if I want to also translate the errors? πAlaanor
01/09/2023, 6:47 PMsupabase secrets
?mingfang
01/09/2023, 6:52 PMnpm run build
, you'll see that the PUBLIC_URL
is burned into the build in .next
directory, and not reading from the environment variable at runtime.yayza_
01/09/2023, 7:30 PMJam
01/09/2023, 7:56 PMHugos
01/09/2023, 8:50 PMMarc A
01/09/2023, 8:51 PMjez
01/09/2023, 9:46 PMilyadynin
01/09/2023, 10:01 PMpetoma
01/09/2023, 10:20 PMkpradel
01/09/2023, 10:56 PMkonga
01/09/2023, 11:11 PM