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

    tinjaw

    09/06/2021, 8:49 PM
    yes
  • u

    user

    09/06/2021, 8:50 PM
    Thankyou for the quick response!
  • u

    user

    09/06/2021, 8:50 PM
    This look correct?
  • u

    user

    09/06/2021, 8:50 PM
    (once I substitute my actually url and key)
  • t

    tinjaw

    09/06/2021, 8:50 PM
    correct
  • t

    tinjaw

    09/06/2021, 8:54 PM
    I figured it out. It looks like magicLink? now defaults to
    false
  • u

    user

    09/06/2021, 8:55 PM
    Figured out where my issue was. Thanks for the help
  • d

    davlaha

    09/06/2021, 9:04 PM
    Does anyone know if its possible to obtain the google
    user_id
    for a user if they login via google. When I call
    supabase.auth.session();
    the user/session object does not give me back the
    google_id
    of the associated user. Am I missing something or is this not possible? The
    provider_token
    is not a JWT and I am unsure how to decode it? SOLVED I am unsure if this is the best way to go about this but you can hit the following URL and it will give you the below payload: https://www.googleapis.com/oauth2/v3/userinfo?access_token={}
    Copy code
    {
      "sub": "5464658798469585",
      "name": "Test One",
      "given_name": "Test One",
      "family_name": "Passage",
      "picture": "https://lh3.googleusercontent.com/a-/AOh14GgdYczB3s3pCfdaffadfdfadsfdsfafdsfrefrttrbghgp9zKrMLlvDWNpgLjiIpZiN97d=s96-c",
      "email": "testone@gmail.com",
      "email_verified": true,
      "locale": "en"
    }
  • r

    RichCorbs

    09/07/2021, 2:09 AM
    Anyone using magiclink to login to a dev environment using the same link as works in production?
  • r

    RichCorbs

    09/07/2021, 2:22 AM
    Got it. I had to add localhost to the additional redirect URLs with the exact path that I'm expecting.
  • j

    jonny

    09/07/2021, 2:31 AM
    don't really understand this, i would of thought your enviroment variable on development is mathiass-io-1bdsf74wdfsfd65-mathiass.vercel.app and on prod it is mathiass.io ? docs are here for setting success and cancel urls as well https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#success-page
  • p

    Peanut

    09/07/2021, 4:08 AM
    Try writing some tests using a tool like Postman that will make HTTP requests to your PostgREST endpoints and verify RLS is working properly. You will need a valid JWT though for authentication (maybe write all your tests in Node.js and create a JWT for your tests) You can impersonate a user using this SQL so you could probably write some SQL tests:
    Copy code
    BEGIN;
        SET LOCAL request.jwt.claim.sub = 'YOUR_USER_ID';
        SET LOCAL ROLE authenticated;
        
        SELECT * FROM someTableWithRlsEnabled;
    COMMIT;
  • w

    wiverson

    09/07/2021, 6:55 AM
    Trying to get password reset to work. I can see the GET to the supabase.co/auth/v1/verify but the redirect is stripping out the #access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery as described at https://supabase.io/docs/reference/dart/reset-password-email - also, what's with the # - should be a ? for proper parsing...?
    n
    o
    • 3
    • 6
  • o

    oskar

    09/07/2021, 8:10 AM
    Hello everyone, trying to import users from Firebase to Supabase but Supabase apparently doesn't recognize them as "real users". Any ideas? https://github.com/supabase/supabase/discussions/3105
  • d

    Deleted User

    09/07/2021, 8:16 AM
    Hi, this isn't really building help, but I am trying to change my email (the one displayed on Supabase Teams). I changed my primary email on GitHub, signed out then signed in on Supabase, waited a few minutes. However, it's still not displaying the new one. Is there a way to change your email on Supabase?
  • u

    user

    09/07/2021, 9:03 AM
    Hey guys, how do i query this with supabase, assuming I have two tables a:b 1:N I need to query array of
    a
    Copy code
    supabase.from(a)
    .select(*)
    But i need to include array of
    b
    which belongs to
    a
    like so
    Copy code
    [{
     bs: [b, b, b]
    }]
    Thanks in advance
  • u

    user

    09/07/2021, 9:16 AM
    Nvm, found the error, i had
    Copy code
    supabase.from(a)
    .select(`*, b ()`)
    This works
    Copy code
    supabase.from(a)
    .select(`*, b (*)`)
    Leaving this here just if anyone struggles with this as well
  • u

    user

    09/07/2021, 10:48 AM
    I thought the same, but figured out that the
    VERCEL_URL
    is used by Vercel to define the deployment URL. I ended up creating my own variable and defined the prod URL. It works perfect now.
  • s

    Saad-Mujeeb

    09/07/2021, 11:45 AM
    > Digest: sha256:33d61f2d4a085df864e3f560f886bf83d9bc8950ae9c40acd66b2606b5789fb6 > Status: Downloaded newer image for supabase/gotrue:latest > Creating supabase-db ... done > Creating supabase-kong ... done > Creating supabase-realtime ... > Creating supabase-auth ... > Creating supabase-rest ... > Creating supabase-rest ... error > > ERROR: for supabase-rest Cannot start service rest: driver failed programming eCreating supabase-realtime ... done > Creating supabase-auth ... done > 0.0.0:3000: bind: address already in use > > ERROR: for rest Cannot start service rest: driver failed programming external connectivity on endpoint supabase-rest (67e5374f02d03c1592921869553e790313c300e6110703bcc87d7445082dbaaf): Error starting userland proxy: listen tcp4 0.0.0.0:3000: bind: address already in use > ERROR: Encountered errors while bringing up the project. I get this error when i try to install via docker. any help ? supabase installs so many images and containers, tbh..
  • s

    Seb Toombs

    09/07/2021, 11:46 AM
    Looks like something is already running on port 3000. try killing that process
  • s

    Saad-Mujeeb

    09/07/2021, 12:07 PM
    yes i have local application running on 3000
  • s

    Seb Toombs

    09/07/2021, 12:08 PM
    there you go then!
  • d

    drex

    09/07/2021, 12:09 PM
    umm any idea why im getting this
  • s

    soedirgo

    09/07/2021, 12:09 PM
    @User before you proceed, the CLI is broken at the moment, see https://github.com/supabase/cli/issues/49#issuecomment-913447822
  • d

    drex

    09/07/2021, 12:10 PM
    im getting this after authenticating with discord
  • s

    Saad-Mujeeb

    09/07/2021, 12:11 PM
    oh that's sad then.... i'll wait
  • s

    Saad-Mujeeb

    09/07/2021, 2:02 PM
    lemme know when it's fixed, i'll self deploy it
  • g

    GHOST

    09/07/2021, 2:27 PM
    I am using supabase auth with Discord
  • g

    GHOST

    09/07/2021, 2:27 PM
    When I call the auth function it redirects the user to discord to sign in
  • g

    GHOST

    09/07/2021, 2:27 PM
    but that exists out of the browser window and therefore exists the function call
1...777879...316Latest