https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • r

    ricky

    06/25/2022, 10:38 PM
    if so, can somebody provide an example as to how I'd do this. thanks
    g
    • 2
    • 2
  • g

    garyaustin

    06/25/2022, 11:04 PM
    if so can somebody provide an example as
  • s

    stijn

    06/26/2022, 4:21 PM
    Hi! When using the Javascript Supabase package with
    persistSession: true
    , it stores the session in localStorage which isn't great security wise. While I'm not sure it's 100% safe I thought it would be better to instead store the refresh-token in a cookie and use this to persist the session? Is it possible to authenticate with a refresh token? Does anybody know other/better ways to securely persist session? All advice and related resources are appreciated:)
  • o

    Olyno

    06/26/2022, 8:53 PM
    Hi Please ask in #843999948717555735, it is a better place to ask
  • a

    aa

    06/27/2022, 2:22 AM
    Hi I'm having a hard time getting realtime subscriptions to work. It used to work fine and sometime over last few weeks in stopped working with no relevant code changse I can find, and I don't understand why. I'm not sure how to debug. Here's the app that is not working: https://replicache-todo-dbpmsba72-rocicorp.vercel.app/d/Ww5BFS. I expect that when I open this in two tabs and make changes, they are replicated in realtime. The realtime subscription bit is very simple. Code here: https://github.com/rocicorp/replicache-todo/pull/17/files#diff-06e55815e321b51ef509e1639acff6e732a58d1af11e9beb00adf987738fac17R19. I have verified that the key and URL are correct. They correspond to the Supabase project here: https://app.supabase.com/project/pfdhjzsdkvlmuyvttfvt. I don't see any errors on either client or server. I verified that RLS is turned off on the table and that the publications are setup. I see the websocket for realtime come up, there's just no messages that ever get sent over it. What am I missing?
    g
    • 2
    • 16
  • m

    mattdeere

    06/27/2022, 8:00 AM
    Hello 👋, just wanted to ask if there is any benefits to use Prisma rather than Supabase’s own package. If possible, which one can choose a random line from a table/project, thanks.
  • i

    Immigrant

    06/27/2022, 9:22 AM
    Hi folks. Is it possible to have One Time Passwords like with phone sms, but without the phone? I am building a for fun app for my kids, where I want them to be able to log in to the service, but without registering email, phone number etc. Just sign up and log in with a 6 digit one time pass that keeps them logged in for a longer period.
  • s

    silentworks

    06/27/2022, 10:43 AM
    You would have to build your own auth system to get this to work at the moment as we need a unique identifier for each user in our Auth system.
  • p

    paddyjoneill

    06/27/2022, 11:16 AM
    Is there a date for when Supabase UI will come out of Alpha and into Beta?
  • i

    Immigrant

    06/27/2022, 11:19 AM
    Thanks for your answer. What about adding the same phonenumber to multiple users? Or is the phonenumber the unique identifier for the user?
  • l

    LEGEND

    06/27/2022, 11:21 AM
    gys i need a small help.. when i uploading to the bucket i get permission error ..while bucket is public
  • l

    LEGEND

    06/27/2022, 11:24 AM
    Error was new row violates row-level security policy for table \"objects\
  • s

    silentworks

    06/27/2022, 11:25 AM
    Please ask in the #843999948717555735 channel and provide enough context for someone to help you.
  • s

    silentworks

    06/27/2022, 11:25 AM
    Yes the phone number is the unique identifier for the user.
  • i

    Immigrant

    06/27/2022, 11:27 AM
    So only way is to create own auth. Is it hard creating custom auth integrating with supabase?
  • s

    silentworks

    06/27/2022, 11:30 AM
    Hard and easy are relative to each individual. I can say it's definitely not as easy as just using what's already there.
  • i

    Immigrant

    06/27/2022, 11:34 AM
    of course. I guess it should be straight forward. I will look into it, thanks.
  • b

    BangBangSaxena

    06/27/2022, 2:06 PM
    anyone facing issues with creating digital ocean droplet for supabase?
  • y

    yolo

    06/27/2022, 8:48 PM
    How can I sign up a user using BOTH phone sms verification and email?
    b
    j
    • 3
    • 2
  • b

    BangBangSaxena

    06/28/2022, 6:15 AM
    How can I sign up a user using BOTH
  • r

    Revxrsal

    06/28/2022, 9:44 AM
    o/ question is there any way to run code when a row in a table is created?
  • s

    silentworks

    06/28/2022, 9:47 AM
    Please ask this in the #843999948717555735 channel.
  • s

    satya

    06/29/2022, 12:22 PM
    @Revxrsal yes using Supabase function hooks
  • z

    zenny.eth

    06/29/2022, 6:08 PM
    Is there a way to do anonymous auth? I saw there was an old issue on GitHub. Thinking through how one might implement a hybrid supabase + crypto DAPP. For example might want to let people "login" with their wallet and have RLS rules that only lets people access certain rows if they are owner of that wallet. Any idea if someone has implemented that or where to look on how to try something like that?
  • g

    ggggguh

    06/29/2022, 7:31 PM
    no not yet. in my app i use the fact that if someone knows a uuid, they can query based on that uuid.
  • s

    snowshift

    06/29/2022, 7:45 PM
    Clerk integration for hybrid supabase DApp is the way to go I think
  • j

    jaitaiwan

    06/29/2022, 11:37 PM
    @zenny.eth you could simulate anon auth by turning off email confirmations and creating unique emails on your own fake domain. E.g. blazing.tigress@zenny.eth
  • s

    Sven Magnus

    06/30/2022, 1:58 AM
    Hi everyone, using supabase with sveltekit. Connected project to supabase and am writing to tables with no issue. Experiencing some issue when it comes to auth. Took my code right from Supabase docs for auth and am getting this CORS related error as shown in the screenshot.
    j
    • 2
    • 2
  • j

    jaitaiwan

    06/30/2022, 2:27 AM
    Hi everyone using supabase with
  • e

    edelacruz

    06/30/2022, 7:51 AM
    @Sven Magnus Hi Sven. I'm using Supabase with Sveltekit too and I have no problems signing in. Below is my script from the login.svelte route page.
    Copy code
    <script>
      import { supabase } from '$lib/supabaseClient'
      import { goto } from '$app/navigation'
      import { user } from '$lib/stores/sessionStore.js'
      
      let loading = false
      let email = ''
      let password = ''
    
      const handleLogin = async () => {
        try {
          loading = true
          const { error } = await supabase.auth.signIn({ email, password })
          if (error) throw error
          const tmpUser = supabase.auth.user()
          user.set({
            email: tmpUser.email,
            id: tmpUser.id,
          })
          goto('/')
        } catch (error) {
          alert(error.error_description || error.message)
        } finally {
          loading = false
        }
      }
    </script>
1...238239240...392Latest