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

    a d

    08/02/2021, 12:32 PM
    Supabase status 500 error response
  • d

    DharmaraJ

    08/02/2021, 12:37 PM
    How do I get current user's Access Token?
  • d

    DharmaraJ

    08/02/2021, 12:38 PM
    It's there in local storage but no method in the SDK ?
  • d

    DharmaraJ

    08/02/2021, 12:39 PM
    nvm
  • d

    DharmaraJ

    08/02/2021, 12:39 PM
    It's under
    session()
    and not
    user()
  • d

    DharmaraJ

    08/02/2021, 12:39 PM
    Copy code
    js
    const accessToken = auth.session().access_token
  • n

    nooki

    08/02/2021, 2:21 PM
    Hi๐Ÿ‘‹ just wondering what would be the recommended approach to implement Select/Enum type in supabase. Thanks๐Ÿ™๐Ÿผ
  • b

    Benanna19

    08/02/2021, 3:25 PM
    Hey everyone, I was wondering if anyone who has an M1 mac is still having issues running supabase on docker? This is probably a docker issue but I was wondering if anyone had this issue and found a work around. Thanks team!
    e
    f
    • 3
    • 8
  • m

    mischkez

    08/02/2021, 3:31 PM
    hello there, I have an important question... does anyone know, how can I use fb and google app to open login with expo (react native), or even just the url where i can obtain the needed refreshToken after asking users to login with facebook, so the correct workflow would be: user clicks on a 'login with fb' button, fb popus up (user is probably already logged in) it logs the user in, or creates the user... etc... etc... what I don't want is for users to type their credentials again, I need them to log in fast, because (believe it or not) lots of users don't know their passwords and are not able to retype it, that's why i can't use this web based login with creating AuthSession redirect url
  • r

    rafaelh

    08/02/2021, 3:39 PM
    Hi there! I am looking to try out Supabase but cannot migrate our DB to use Supabase. We would like to integrate the Auth functionality to replace Firebase! Question is would there be an ability to handle login/signup server-side to verify an existing User and retrieve a DB record outside of Supabase Postgres? Right now we use Firebase admin to handle token verification and retrieve a User record on the server via NodeJS. Can this be done via Supabase?
  • d

    DharmaraJ

    08/02/2021, 4:25 PM
    What is count?
  • d

    DharmaraJ

    08/02/2021, 4:25 PM
    Shouldn't it be number of rows matched the query?
    b
    • 2
    • 28
  • d

    DharmaraJ

    08/02/2021, 4:25 PM
    5 in this case?
  • a

    aliparpar

    08/02/2021, 4:42 PM
    Do we need to setup two projects to have a dev and prod environments?
  • a

    aliparpar

    08/02/2021, 4:42 PM
    How can we replicate dbs in supabase from dev to prod?
    o
    • 2
    • 1
  • b

    babayaga

    08/02/2021, 4:52 PM
    Hello guys, does anybody know how to random query to users table or any table?
    e
    • 2
    • 1
  • e

    everconfusedguy

    08/02/2021, 5:17 PM
    Random query
  • b

    Bash

    08/02/2021, 6:08 PM
    Ello guys, so I have a react app, how would I go on about sending requests to supabase without exposing my token, and without having to use a node/python backend server
    o
    s
    e
    • 4
    • 19
  • n

    nicholaschiang

    08/02/2021, 6:26 PM
    How do I filter to get only rows where a column isn't an empty array? I've tried:
    Copy code
    javascript
    const { data, error } = await supabase.from('users').select().neq('times', []);
    But that โ˜๏ธ doesn't seem to work (
    data
    is always empty).
    b
    • 2
    • 28
  • n

    nicholaschiang

    08/02/2021, 6:53 PM
    Empty Array
  • t

    tettvy

    08/02/2021, 6:59 PM
    Running into errors when I try to look at any of the API docs
    • 1
    • 3
  • b

    burggraf

    08/02/2021, 6:59 PM
    What is count?
  • f

    Flyken

    08/02/2021, 7:10 PM
    im stumped :/
  • f

    Flyken

    08/02/2021, 7:10 PM
    im using radix idprovider wrapped around my entire app in
    _app.js
    but still getting this
  • f

    Flyken

    08/02/2021, 7:11 PM
    theres nothing on this warning either, the only results i get from a google search is from adobe and radix
  • n

    nicholaschiang

    08/02/2021, 7:14 PM
    @User another random question: are
    Date
    objects stored as
    timestamptz
    in Supabase turned back into
    Date
    objects when queried? It seems like they're always going to be ISO strings (JSON-ified by Postgrest). Is that correct? That seems like a bad API surface for your SDK IMO...
    b
    • 2
    • 58
  • o

    Olyno

    08/02/2021, 7:51 PM
    Create production env
  • o

    Olyno

    08/02/2021, 7:53 PM
    Token exposure
  • t

    ThisIsJustin

    08/02/2021, 8:03 PM
    Is it possible view logs or get more information about incoming requests? We saw a 75 times jump in GET requests in a day, and I would like to investigate that to see if I can find the source.
    o
    • 2
    • 4
  • j

    Jasper

    08/02/2021, 8:08 PM
    Copy code
    jsx
    const [todos, setTodos] = useState([])
      useEffect(() => {
            supabase.from("todos").select().then(res => {
                const list = [];
                for (let todo of res.data) {
                    list.push(todo)
                }
                setTodos(list)
            })
    
            supabase.from("todos")
                .on("UPDATE", payload => {
                    console.log(todos)
                })
                .subscribe(payload => {
                    console.log('schema ', payload)
                })
    
        }, [])
    Hello, i'm trying to use the realtime database in react, but in the callback my local state is a empty array.
1...323334...316Latest