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

    Camo

    08/17/2021, 9:38 PM
    it binds the user table to your newly made table for the data i..e profile
  • c

    Camo

    08/17/2021, 9:40 PM
    to be honest, the tutorial is totally bonkers, i wish they would add more understandable tutorials, like adding regular registration, auth, then with option to add the magic link, stuff with the db is such a mess
  • c

    Camo

    08/17/2021, 9:40 PM
    hacking it trough though
  • u

    user

    08/17/2021, 10:17 PM
    i agree
  • l

    lsunkieder

    08/17/2021, 10:54 PM
    by stuff with the database you mean the policies ? @User
  • a

    Alvin

    08/18/2021, 4:20 AM
    Hello team, I have a question. I’m starting a greenfield project now and I’m deciding whether to use FastApi or supabase for the backend. I’ve used firebase in the past, are there any differences between these 2 open source platforms? Appreciate any insights 😃 Ps. It’s a flutter project
  • m

    Marky

    08/18/2021, 5:52 AM
    Is there a way to upsert currentValue + X instead of querying for currentValue then inserting without atomic
  • s

    silas

    08/18/2021, 6:01 AM
    Does anyone know why
    supabase.auth.user()
    and
    supabase.auth.session()
    and
    supabase.auth.refreshSession
    all return null and "Error: Not logged in." when the user is actually logged in and the session is right there in local storage?
  • s

    silas

    08/18/2021, 6:02 AM
    I'm checking these values on page load, and they always return null or error no matter whether the user is logged in or logged out
  • f

    florian-lefebvre

    08/18/2021, 6:42 AM
    Are you using SSR ?
  • s

    silas

    08/18/2021, 6:45 AM
    @florian-lefebvre — Yep, using SSR with SvelteKit or Nuxt depending on the project
  • f

    florian-lefebvre

    08/18/2021, 6:47 AM
    Okay so for example if your using Nuxt (because I tried the past days) with asyncData or middleware you can't use that since these methods are server side
  • f

    florian-lefebvre

    08/18/2021, 6:47 AM
    You have to create api routes using Express
  • f

    florian-lefebvre

    08/18/2021, 6:48 AM
    I can't show you right now but I will asap
  • f

    florian-lefebvre

    08/18/2021, 6:48 AM
    Meanwhile, you must have a look to the next js example with SSR auth to see what's the process
  • s

    silas

    08/18/2021, 6:52 AM
    You know what.. I think you’re right—I’m using a handle() function in a hooks.js file for SvelteKit (comparable to middleware in Nuxt) and I bet it’s server-side. I just assumed it was client-side. I need to switch over to using functions under supabase.auth.api… instead of supabase.auth…
  • f

    florian-lefebvre

    08/18/2021, 6:52 AM
    Yes exactly
  • s

    silas

    08/18/2021, 6:52 AM
    Not at my computer atm but I’ll try that out tomorrow. Thanks a ton for the reply
  • f

    florian-lefebvre

    08/18/2021, 6:52 AM
    Really check out the example it was really helpful
  • s

    silas

    08/18/2021, 6:53 AM
    Awesome, I’ll do that, thank you
  • j

    jon.m

    08/18/2021, 3:35 PM
    Is there any performance benefit to injecting auth session data into a redux store or context? As opposed to protecting components that are auth only by pulling the auth session data from supabase?
  • m

    Marky

    08/18/2021, 3:43 PM
    The only way to do anything atomically is to use postgres directly or a stored procedure correct?
  • t

    test12

    08/18/2021, 4:04 PM
    how to custom backup, backup button delete website why : /
    s
    • 2
    • 3
  • s

    silentworks

    08/18/2021, 8:17 PM
    Custom backup
  • f

    flames

    08/18/2021, 9:55 PM
    Quite off topic But pease is a 1080p 27 inch monitor good for programming? Will the text be clear?
  • a

    acpatrice

    08/18/2021, 9:56 PM
    Clear enough to read and be productive, yes. But the resolution is quite low so you won't have much real estate to work with.
  • f

    flames

    08/18/2021, 9:57 PM
    Okay, so 2k display is preferable yh ?
  • m

    Marky

    08/18/2021, 11:05 PM
    Does supabase.rpc always treat arguments as text type?
  • b

    brohan

    08/19/2021, 12:11 AM
    does anyone know if theres a way to edit the email of a user? in terms of auth, the same way you reset a password?
  • m

    mrboutte

    08/19/2021, 12:20 AM
    in the template Queries and examples in docs I've seen the following
    id uuid references auth.users not null,
    for setting a foreign key relationship on a user's id from the
    auth
    table. But the UI in the table editor view is throwing an error when I try to
    view data
    and I'm getting
    Error: Invalid value <foo> for foreign key 'users.id'
1...818283...392Latest