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

    Edan

    08/24/2021, 2:18 AM
    Right. I'm not sure what to do after that step
  • p

    Poypoypoy

    08/24/2021, 2:19 AM
    then you can put your credential in login page. that it.
  • p

    Poypoypoy

    08/24/2021, 2:20 AM
    man is SvelteKit is good hehe.
  • e

    Edan

    08/24/2021, 2:20 AM
    Put credentials? Once you click on the link you should be logged in. That's what Magic link does.
  • p

    Poypoypoy

    08/24/2021, 2:22 AM
    yeah yeah, my bad i forgot that thing, im reading the docs right now , hold on
  • e

    Edan

    08/24/2021, 2:22 AM
    I think I'm supposed to capture somehow the token from the URL and then set a cookie
  • p

    Poypoypoy

    08/24/2021, 2:23 AM
    ill try the magic link in my project then ill update you asap for the result
    e
    • 2
    • 4
  • s

    Scott P

    08/24/2021, 2:24 AM
    Why not make a thread about this instead of chaining replies in the main channel?
  • e

    Edan

    08/24/2021, 2:25 AM
    I forgot Discord added threads! done 🙂
  • p

    Poypoypoy

    08/24/2021, 2:30 AM
    forgot too, thanks for reminding man.
  • p

    Poypoypoy

    08/24/2021, 2:31 AM
    https://dev.to/dabit3/magic-link-authentication-and-route-controls-with-supabase-and-next-js-leo try this one man. magic link
  • m

    Mattyfaz

    08/24/2021, 6:41 AM
    Does Supabase have a way to use distinct via JS api? E.g. you could typically perform
    select distinct(col1) from test order by col1;
    to get unique values in col1. I need that same functionality via API.
  • t

    tukemon

    08/24/2021, 9:45 AM
    Hi, I want to allow "invite-only" users on my app. So I disable sign up on my auth setting. But it seems existing user (who already invited by email) can't sign in to my app (it shows "Unsupported email provider")
  • t

    tukemon

    08/24/2021, 9:46 AM
    After get invitation email, they can click and auto logged in. But after log out, they can'e enter again. Anyone has experience in this?
  • t

    tukemon

    08/24/2021, 9:55 AM
    So in short: How to allow people who is already invited, can sign in via email/magic link
  • u

    user

    08/24/2021, 10:34 AM
    Is there a way to know what the ID of a row will be before it's inserted? (assuming that ids are counting up)
  • t

    tukemon

    08/24/2021, 10:38 AM
    If the id is counting up, then you can fetch the latest id first. But with risk: between the latest fetch it could be someone already inserted a new one. So I believe it's better using random id (uuid as an example) , you can generate the uuid first, before insert it
  • u

    user

    08/24/2021, 11:20 AM
    Thanks @User, makes sense 🙂
  • s

    supa

    08/24/2021, 12:40 PM
    Hello, I was wondering if supabase allows us to process some logic on server side atm or if we should wait for cloud functions that are coming?
  • j

    juanzen

    08/24/2021, 1:22 PM
    I'm getting an error of foreign key violation, I'm referencing the ID of another table. I know the ID on that table exist, but still tells me it doesn't? What could be causing that
  • h

    HorseShoe

    08/24/2021, 2:52 PM
    Do the types match?
  • h

    HorseShoe

    08/24/2021, 2:53 PM
    It has to be exact
  • j

    juanzen

    08/24/2021, 2:54 PM
    Hey, yes! I found the problem. I was trying to upload a string[] when I have string in my DB. It was a strange interaction with Nextjs params from getserversideprops
  • j

    juanzen

    08/24/2021, 2:55 PM
    Thank you!
  • h

    HorseShoe

    08/24/2021, 3:13 PM
    That's actually exactly what I did too so I knew 😂
  • h

    HorseShoe

    08/24/2021, 3:14 PM
    But i knew the type mismatch was the culprit right away
  • h

    HorseShoe

    08/24/2021, 3:14 PM
    I used to use prisma and there I cud have many to one and one to many relationships
  • h

    HorseShoe

    08/24/2021, 3:14 PM
    ¯\\_(ツ)\_/¯
  • h

    HorseShoe

    08/24/2021, 3:15 PM
    Sad lyf
  • f

    fengkx

    08/24/2021, 3:31 PM
    Hi, I am using supabase in my react app. I use
    supbase.auth.session
    to check whether user is already login in a React Context. And I found that at the first redirect from the OAuth2 API, this function always return null. It seems to cause by the line https://github.com/supabase/gotrue-js/blob/75060928d89ba9368fcc513aa8c264263808d142/src/GoTrueClient.ts#L400 . This line yield and react render the unlogin UI incorrectly. Adding
    this.setAuth(access_token)
    before this await function call seems to fix the problem.
1...616263...316Latest