https://supabase.com/ logo
Join Discord
Powered by
# help
  • l

    Luis Felipe

    07/28/2021, 4:08 PM
    Yes... I am using my encoded api key... but I don't know what is happening, I'll check the link...
  • j

    Jono Yeong

    07/28/2021, 4:14 PM
    Is there a way to rotate a service_role secret API key? I know it should never be exposed, but let's say a "friend" (yes me) exposed their key. Is there a way to get a new one without having to create a new Supabase project?
  • u

    user

    07/28/2021, 4:18 PM
    Hey 👋🏻, is superbase PCI-DSS compliment in terms of the cloud version?
  • s

    silentworks

    07/28/2021, 4:18 PM
    I think for SvelteKit a cookie is what I've seen used https://github.com/supabase/supabase/discussions/1813
  • e

    ehesp

    07/28/2021, 4:36 PM
    Copy code
    CREATE OR REPLACE FUNCTION public.handle_new_user() 
    returns trigger as $$
    begin
      insert into public.users (id, login, project) values (new.id, new.user_metadata->'user_name', ''); 
      return new;
    end;
    $$ language plpgsql security definer;
    This is erroring - how do I access
    new.user_metadata->'user_name'
    ?
  • b

    Bryan K.

    07/28/2021, 4:44 PM
    I found this link through yours, thank you. https://github.com/ashleyconnor/sveltekit-supabase-demo
  • s

    silentworks

    07/28/2021, 4:45 PM
    You're welcome
  • b

    Bryan K.

    07/28/2021, 4:46 PM
    What do you think of these issues? https://github.com/ashleyconnor/sveltekit-supabase-demo#issues
  • s

    silentworks

    07/28/2021, 4:51 PM
    Although they are issues I don't think its something you need to worry about much, this is handles the same way as how Firebase handles their auth on the client too. I think if there are any security implications the Supabase team will/would address them.
  • b

    Bryan K.

    07/28/2021, 4:52 PM
    Oh, this is nice... https://www.ashleyconnor.co.uk/2021/06/24/authenticated-server-rendered-pages-with-sveltekit-and-supabase
  • h

    hamishcoding

    07/28/2021, 4:54 PM
    Can I still use supabase storage if I'm not using supabase auth? Right now i'm getting a RLS error when uploading (obviously since I am not using supabase auth), any way to bypass this?
  • a

    Azura

    07/28/2021, 4:55 PM
    You can either make your supabase storage public, or create an one-for-all dev account that can upload to supabase storage's buckets
  • a

    Azura

    07/28/2021, 4:56 PM
    That would help
  • y

    YelloJello

    07/28/2021, 4:57 PM
    i don't seem to receive any payloads when listening to views in real time, does this have smthing to do with not being able to enable replication for a view?
  • b

    bdlukaa

    07/28/2021, 5:14 PM
    ?
  • s

    silentworks

    07/28/2021, 5:15 PM
    Same as this https://github.com/supabase/supabase/discussions/2419#discussioncomment-1024026
  • b

    bdlukaa

    07/28/2021, 5:16 PM
    not really. I want to know if a table exists, not if it's empty or not
  • s

    silentworks

    07/28/2021, 5:17 PM
    I'm guessing you would get the same result from
    data
    if it doesn't exist or
    error
    would probably have information in it
  • b

    bdlukaa

    07/28/2021, 5:17 PM
    indeed
  • b

    bdlukaa

    07/28/2021, 5:17 PM
    thanks 🙂
  • c

    claud9

    07/28/2021, 5:20 PM
    👋 , does anyone know if magic links work when the Enable Email Signup is turned off? I want to use a magic link for authorization but I don't want users to be able to sign up, since it'll be for internal team members only with a specific email. When I turn Enable Email Signup off, and the user already exists, I get this error Unsupported email provider, any help?
  • a

    Azura

    07/28/2021, 5:23 PM
    You can just disable signup feature on your app while keeping Email Signup on Supabase turned on. @claud9
  • c

    claud9

    07/28/2021, 5:24 PM
    Great suggestion @User , I can do that.
  • a

    Azura

    07/28/2021, 5:24 PM
    No problem, @claud9. Have a good day.
  • s

    silentworks

    07/28/2021, 5:25 PM
    You should open an issue for this anyway, maybe as a feature request as these two things shouldn't be tied together.
  • a

    Azura

    07/28/2021, 5:26 PM
    I'll open an issue for that tomorrow. Maybe just posting it in #867348150741237790 for now.
  • c

    claud9

    07/28/2021, 5:33 PM
    Thank you!
  • s

    shreedx

    07/28/2021, 5:36 PM
    Hello guys, does anyone have any example of using Supabase's oAuth with React Router with some implementation of protected routes? I am stuck and unable to find any help :/ Seems like my issue is that redirectTo used in the supabase's sign in method redirects me before the auth session get's updated with authorized status, which results in my app being redirected back to login despite being properly logged in.
  • s

    shreedx

    07/28/2021, 5:37 PM
    all the official examples just switch the rendered components once the supabase session changes, but nothing about routes 😦
  • s

    shreedx

    07/28/2021, 6:09 PM
    Is it possible that the redirect happens before the supabase's onAuthStateChange triggers?
1...202122...316Latest