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

    sameh

    05/19/2022, 12:44 PM
    Is there a way to increase the timeout period of phone auth OTP? Many times the sms takes a long time to deliver by which time the OTP is not valid anymore.
  • b

    BAN

    05/19/2022, 3:03 PM
    Possible and kind of annoying bug on supabase studio
  • r

    ricky

    05/19/2022, 3:11 PM
    is this server still active?
    b
    • 2
    • 1
  • b

    burggraf

    05/19/2022, 3:25 PM
    is this server still active
  • s

    sameh

    05/19/2022, 4:39 PM
    Is there a way to have test numbers for phone Auth similar to the way firebase provides test numbers where the OTP is always 123456?
    b
    • 2
    • 3
  • b

    burggraf

    05/19/2022, 4:59 PM
    test numbers for OTP
  • s

    sameh

    05/19/2022, 5:53 PM
    I found.a parameter in supabase/gotrue repo but not sure how to use it
    Copy code
    SMS_OTP_EXP - number
    
    Controls the duration an sms otp is valid for.
  • f

    FED

    05/19/2022, 10:21 PM
    What exactly does the table identities (under auth) do? Can it be used to implement multitenancy, for example?
    b
    • 2
    • 1
  • b

    burggraf

    05/20/2022, 12:22 AM
    What exactly does the table identities
  • n

    nahtnam

    05/20/2022, 5:34 AM
    I wanted to have one authentication system (think like google.com) but also have a bunch of projects branch from that (like youtube.com, google maps, google docs, etc). I was thinking of having one supabase instance and one schema per project, but in an ideal world I'd like to have multiple supabase instances (one per app) and somehow share the authentication data (first name, last name, etc) and maybe something like a shared subscription (e.g. amazon prime). Any ideas or suggestions?
  • j

    jaitaiwan

    05/20/2022, 6:25 AM
    @nahtnam You could use 1 supabase instance as your global authentication and use oauth to authorise the other instancs on a per user basis
  • d

    debabrata

    05/20/2022, 7:28 AM
    I had a quick question regarding the pricing of edge functions. In the free tier, the runtime hours is 100. Is that monthly?
  • j

    jaitaiwan

    05/20/2022, 9:30 AM
    I believe it is
  • d

    debabrata

    05/20/2022, 9:51 AM
    That's great. Thank you very much
  • g

    Groovy

    05/20/2022, 10:14 AM
    just here to say that i love you guys
  • g

    Groovy

    05/20/2022, 10:14 AM
    spent so much time trying to import to a non-supabase sql database. now, gonna try supabase and it'll probably be a one click import thing
  • g

    Groovy

    05/20/2022, 10:15 AM
    (i hope so)
  • n

    nahtnam

    05/20/2022, 11:28 AM
    Is this something supabase supports out of the box or something I'd have to build myself? Couldn't find any docs about it
  • j

    jaitaiwan

    05/20/2022, 11:31 AM
    You'd have to build it out yourself unfortunately. You honestly might be better off just hosting something like Ory's products for your auth: https://www.ory.sh/docs/welcome
  • j

    jaitaiwan

    05/20/2022, 11:31 AM
    Then implement it as a custom oauth provider in supabase
  • n

    nahtnam

    05/20/2022, 11:48 AM
    Hmmm, that's actually what I was already thinking (ory kratos plus hydra) but I was hoping to see if supabase already has a viable solution
  • n

    nahtnam

    05/20/2022, 11:48 AM
    Let me explore how hydra works with supabase
  • n

    nahtnam

    05/20/2022, 11:48 AM
    Do you forsee any issues with the monolith method other than being a monolith?
  • n

    nahtnam

    05/20/2022, 11:49 AM
    https://www.ory.sh/tutorial-url-shortener-supabase-ory-integration-backend/
  • j

    jaitaiwan

    05/20/2022, 11:50 AM
    Not that I'm aware of.
  • j

    jaitaiwan

    05/20/2022, 11:50 AM
    I don't think it has built-in support but I don't think it would take much to build entirely inside supabase
  • j

    jaitaiwan

    05/20/2022, 11:52 AM
    If you were feeling extra useful you could probably make a PR to supabase/gotrue to enable custom oauth2 providers, which could then enable a whole class of oauth2 fun. Supabase would just need to add the custom oauth2 option inside the dashboard.
  • j

    jaitaiwan

    05/20/2022, 11:54 AM
    The way I envision it would be on the auth supabase project, use something like the npm passport library to get some sort of oauth2 quickly running inside supabase functions. Then you'd just need to do some custom db functions to hook into that auth instance I'd say
  • t

    theuknowner

    05/20/2022, 12:27 PM
    Hello, I use Supabase for my Chat backend. When you start an instance, this instance is Highly Available ? Or do i need to manually create more instances in order to achieve HA?
  • l

    lanbau

    05/20/2022, 2:44 PM
    hi there, i’m stuck on this for hours.. if any kind soul can help.. i have 3 tables a_investors (id, name, user_id) a_startup (id, name, user_id) a_investor_startup (id, investor_id, startup_id) an investor can only query in investor_startup when it matches his id. Likewise for a startup. Tried this but getting null on the frontend
    Copy code
    CREATE OR REPLACE FUNCTION is_member_of_investorstartup(_startup_id int8, _investor_id int8) RETURNS bool AS $$SELECT
    
    EXISTS (  
      SELECT 1  FROM a_investors_startups om  
      WHERE om.investor_id = _investor_id  
      AND om.startup_id = _startup_id)
    
    ;$$ LANGUAGE sql SECURITY DEFINER;
    Copy code
    const { data, error, status } = 
      await supabase.from("a_investors_startups").select(          `id,a_startups( name )`);
    Copy code
    is_member_of_investorstartup(startup_id, investor_id)
    Any idea what RLS can achieve this?
1...223224225...392Latest