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

    juanzen

    08/24/2021, 3:33 PM
    I thought about, but to me it didn't make sense. The linter didn't told me I was passing an array, so I just did String () to see if it worked
  • f

    fengkx

    08/24/2021, 3:39 PM
    https://plastic-editor-react.vercel.app/login is an example. The first time you login and redirect from OAtuh2 API. The button and icon in left hand side is "Login" instead of "Logout" as expected. And you can see the
    null
    log in Broswer console
  • f

    fengkx

    08/24/2021, 3:46 PM
    This app is open sourced and the line of code is in https://github.com/fengkx/plastic-editor-react/blob/7247c62325e120624a409450662b5fab51bc2045/components/Editor/adapters/AdapterContext.tsx#L15
  • u

    user

    08/24/2021, 4:34 PM
    fixed with empty table: CREATE TABLE tags ( id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, user_id uuid NOT NULL, tag text NOT NULL UNIQUE, isAvailable boolean NOT NULL);
  • f

    frubalu

    08/24/2021, 5:21 PM
    Is it possible to update a user's password by just using the
    supabase.auth.update()
    method? Or is the only available method
    supabase.auth.api.resetPasswordForEmail()
    ? I'd like to allow a user to update their password directly from their Profile page.
    m
    s
    • 3
    • 6
  • m

    MrWolf

    08/24/2021, 6:11 PM
    Password Reset Avenues
  • u

    user

    08/25/2021, 3:20 AM
    Any idea why redirecting in
    getServerSideProps
    doesn't trigger when navigated to from Link? (next.js)
  • m

    Michael Ketzer | streamgeist.com

    08/25/2021, 9:03 AM
    Hey there! I got an issue with one of my projects on supabase.io. I cannot connect to it via the Web interface. All my requests resulting in a 504 and timeouting. I tried already restarting the server but this did not help. All other projects are fine. Has anyone got any idea what's causing this?
  • j

    jonny

    08/25/2021, 10:12 AM
    can you email support@supabase.io with your project ID, or click "Feedback on this page?" in the dashboard app and select "Help"
  • l

    LuddensEkko

    08/25/2021, 11:48 AM
    hi there, how can i achieve role based access to my app, ex (admin, user, invited...etc)? should i use RLS for that?
    s
    • 2
    • 2
  • m

    Michael Ketzer | streamgeist.com

    08/25/2021, 12:10 PM
    Did so and it appears to be resolved. Thank you!
  • s

    silentworks

    08/25/2021, 2:05 PM
    Role based access
  • m

    Maus

    08/25/2021, 3:32 PM
    When clicking the password recovery link send by supabase i get redirected to my react (nextjs) application (so far so good), but the
    'PASSWORD_RECOVERY'
    event is not fired inside the
    onAuthStateChange
    listener. I'm not quite sure at this moment what I can do to debug this further?
    Copy code
    useEffect(() => {
        const { data: authListener } = supabase.auth.onAuthStateChange(
          (event, session) => {
            console.log('event :>> ', event)
          }
        )
      }, [])
    Console output inside browser when clicking link:
    Copy code
    event :>>  SIGNED_IN
    • 1
    • 1
  • h

    HorseShoe

    08/25/2021, 4:46 PM
    Why are u guys using hash part instead of query
  • h

    HorseShoe

    08/25/2021, 4:46 PM
    I am using sveltekit and in endpoints i cant access hash part at all..
  • s

    silentworks

    08/25/2021, 5:00 PM
    Can you be specific to what you are referring to please?
  • s

    Scott P

    08/25/2021, 5:07 PM
    I think they're referring to the password reset, magic link and some other types of URL's using
    #
    (window.location.hash) in their URL's, as opposed to being done with query params (e.g.
    some.url/auth?action=recovery&token=abc123
    )
  • h

    HorseShoe

    08/25/2021, 5:20 PM
    All types of auth
  • h

    HorseShoe

    08/25/2021, 5:21 PM
    Signup, recovery, etc
  • h

    HorseShoe

    08/25/2021, 5:21 PM
    Anyway i created a dummy svelte file that just loads respective pages
  • h

    HorseShoe

    08/25/2021, 5:21 PM
    But still thats kinda puzzling
  • b

    BitRain

    08/25/2021, 6:04 PM
    Hey just wanted to ask if supabase auth allows you to have multiple devices logged into the same account at one? Like if I'm already logged in on one device and I log into the same account on another device, will the other device get logged out or have it's session ended?
  • s

    silentworks

    08/25/2021, 6:40 PM
    All users will remain logged in
  • a

    acpatrice

    08/25/2021, 7:20 PM
    General question regarding local / production environments. Is the general consensus to use two Supabase projects? It does not seem to be possible to have
    localhost
    as well as an external website as the "app URL".
  • s

    silentworks

    08/25/2021, 7:46 PM
    Answered here https://github.com/supabase/supabase/discussions/2590#discussioncomment-1082033
  • l

    LuddensEkko

    08/25/2021, 10:24 PM
    hi, l tried to to change the "site url" but my signup email confirmation URL always redirect me to "localhost: 4200", any clew?
  • s

    Scott P

    08/25/2021, 11:03 PM
    Set 'additional redirect urls' too
  • l

    LuddensEkko

    08/25/2021, 11:59 PM
    but how would it know which one to redirect to if they are multiple urls?
  • s

    Scott P

    08/26/2021, 12:15 AM
    I believe it's a whitelist of URL's, so anything not in there would fail when the request is sent to the oAuth provider
  • j

    jon.m

    08/26/2021, 1:19 AM
    what does overlaps do?
1...626364...316Latest