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

    connection01

    02/23/2022, 6:30 AM
    I deployed an app with supabase my apps most valuable part is the data collection. With the public anon key it seems anyone can just steal all my data records is there a was I can limit the number of api calls based on IP address just to make it little difficult. I have set supabase to return only 25 results per call but still nobody stopping them from grabbing everything in database in set of 25 results at a time. Is it possible to do this inside supabase or I have to write up the limit login in my app with some api keys.
    s
    • 2
    • 1
  • w

    warlic

    02/23/2022, 6:31 AM
    Ok let me try it thank you
  • s

    silentworks

    02/23/2022, 8:34 AM
    Limiting data
  • j

    joshcowan25

    02/23/2022, 9:47 AM
    Which one is faster for the database, multiple junction tables or one big junction table?
  • c

    connection01

    02/23/2022, 3:21 PM
    How can I do conditional filter chaining. I am currently using this but it is not good if I want to add more filter options as a form in my app:
    Copy code
    js
    let searchTerm
    
    if (searchTerm) {
      const {data, error} = supabase.from('products').select('*').ilike('name', '%' + searchTerm +'%')
    } else {
      const {data, error} = supabase.from('products').select('*')
    }
    g
    • 2
    • 2
  • s

    Scott P

    02/23/2022, 3:49 PM
    Filter chaining
  • a

    ak4zh

    02/23/2022, 4:44 PM
    I have set supabase to return only 24 items per api call. is there a way to bypass that limit for certain tables? For instance I want the limit to apply across all tables product, images etc. But I do not want the limit to apply on
    categories
    table.
  • p

    pedrodiaz

    02/23/2022, 4:53 PM
    Hello, I have a project which I'm only using the database, so I'd like to avoid my project of being like Inactive? I would like to maintain it active
  • d

    diegoalzate

    02/23/2022, 6:18 PM
    Hello, is there a way to use twilio whatsapp authentication ?
  • n

    nah

    02/23/2022, 6:19 PM
    Tried self-hosting supabase, but this is what I'm seeing in the API page.
  • g

    gabydd

    02/23/2022, 6:51 PM
    There is an issue about this https://github.com/supabase/supabase/issues/5540
  • n

    nah

    02/23/2022, 7:27 PM
    Thanks a lot, working now 👍
  • g

    gabydd

    02/23/2022, 7:48 PM
    Awesome
  • u

    user

    02/23/2022, 10:44 PM
    hi guys i created a table through supabase interface, is there a way i can see it as postgres?
  • e

    Eduardo Lopez

    02/24/2022, 2:23 AM
    I started having issues with the API to query database views with a foreign key, but only in my production environment, staging which has exactly the same data is working fine
  • e

    Eduardo Lopez

    02/24/2022, 2:23 AM
    do you know how I can check other things about my project, like if they upgraded it to a version with a bug or something?
  • j

    João Vitor

    02/24/2022, 2:51 AM
    Downloading an image from storage returns a Blob. How can I use this inside a
    <img />
    ??
  • k

    Kazuto

    02/24/2022, 7:35 AM
    Has anyone experience using supabase with nuxt 3? I can't seem to get it to work. That's my
    supabase.client.ts
    Copy code
    js
    import type { SupabaseClient } from '@supabase/supabase-js'
    import { createClient } from '@supabase/supabase-js'
    import { defineNuxtPlugin } from '#app'
    
    declare module '#app' {
      interface NuxtApp {
        $supabase: SupabaseClient
      }
    }
    
    declare module '@vue/runtime-core' {
      interface ComponentCustomProperties {
        $supabase: SupabaseClient
      }
    }
    
    export default defineNuxtPlugin(() => {
      const { supabaseUrl, supabaseKey } = useRuntimeConfig()
      const supabase: SupabaseClient = createClient(supabaseUrl, supabaseKey)
    
      return {
        provide: {
          supabase
        }
      }
    })
    But I get the error
    [worker] Cannot read properties of undefined (reading 'from')
    when calling
    Copy code
    js
    const { $supabase } = useNuxtApp()
    
    const { data, pending } = $supabase.from('categories').select('*')
  • k

    Kazuto

    02/24/2022, 8:12 AM
    Found the issue. The filename was the problem. It can't be
    supabase.client.ts
    because nuxt only loads it client side because of the suffix
    .client
  • f

    freshandlow

    02/24/2022, 10:17 AM
    Hi, I feel like I'm going mad with the name of the cookie sent to the server, which is being used by the call supabase.auth.setAuth(token) In GetServerSideProps (Next JS) I had the following code working to get the correct user and access RLS tables from the server: "` let token = req.cookies['sb:token'] let authorize = supabase.auth.setAuth(token)`" This was working fine until a couple of weeks ago when it stopped and checking the req object I found the cookie name was name now sb-access-token and updated all my GetServerSideProps to reflect this new name. "` let token = req.cookies['sb-access-token'] let authorize = supabase.auth.setAuth(token)`" Now I check in today and find its broken again and I need to change the token name back to sb:token - does anyone know why this changing? Thx
    s
    • 2
    • 8
  • s

    silentworks

    02/24/2022, 11:29 AM
    Cookie name change
  • b

    baddoh99

    02/24/2022, 11:41 AM
    is it safe to have my supabase anon-key and url on my public github repo if i've enable rls for all my tables?
  • p

    Paul AKA TDI

    02/24/2022, 11:50 AM
    I am having trouble integrating supabase into a sveltkit (not the svelte template that was in the startup guide - that worked fine) - any ideas? I have put the details here https://stackoverflow.com/questions/71251164/sveltekit-with-superbase-api-not-defined
  • p

    PixelPage ᶠᵒˡᶤᶻᶻᵃ

    02/24/2022, 2:42 PM
    Hello, How can i use supabase with deno? I tried: importing it with es6 like the example on github (doesn't work) using deno.land/x/supabase (doesn't work) writing my own library (too much work and no time)
  • a

    AmusedGrape

    02/24/2022, 3:51 PM
    someone found an open RLS-free table and spammed the living hell out of it, i deleted the records but is there any way to get the logs from it? its within the 1 day period for logs but nothing shows
  • t

    Taner Nill

    02/24/2022, 4:10 PM
    Hi! I am trying to port my supabase app to TS and I get this warning for my Authentication provider wrapper... can't wrap my head around what to do here...
  • s

    Scott P

    02/24/2022, 4:16 PM
    The property
    supabase
    doesn't exist on
    AuthProvider
    . CMD + Space / CTRL + Space and intellisense should show you what props you can pass to it.
  • t

    Taner Nill

    02/24/2022, 4:17 PM
    it says no suggestions
  • t

    Taner Nill

    02/24/2022, 4:18 PM
    may be I haven't set it up correctly?
    s
    • 2
    • 11
  • p

    PixelPage ᶠᵒˡᶤᶻᶻᵃ

    02/24/2022, 6:06 PM
    Can i set a user without an email?
1...228229230...316Latest