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

    HorseShoe

    09/03/2021, 2:26 AM
    No that's okay what I mean is for example if u allot someone in free tier a "t2.micro" in aws will it autoscale? Or is it fixed
  • h

    HorseShoe

    09/03/2021, 2:27 AM
    And what's the difference between free and paid tier in terms of the hardware we get?
  • r

    Rorstro

    09/03/2021, 4:29 AM
    For the free tier we have been pretty generous in giving y'all your own instance so feel free to make use of it 🙂 There are no hardware changes - the thing to do is focus on the usage limitations. If you feel you can get what you need out of the free tier then you shouldn't upgrade to pro
  • h

    HorseShoe

    09/03/2021, 4:47 AM
    I see
  • c

    copple

    09/03/2021, 5:42 AM
    "The support via discord is also really amazing!" Y'all have a fan. Thanks for being so helpful everyone https://twitter.com/michaelketzer/status/1433650672373796865
  • l

    lsunkieder

    09/03/2021, 8:07 AM
    Hey all, could someone maybe explain exactly what "Optimized database instances" means within the plan tiers. What specifically does this give you?
    j
    • 2
    • 1
  • e

    e0

    09/03/2021, 9:10 AM
    @User Just watched the video on Row level security. This was a great script and execution! So well-planned and informative while staying concise. Perfect to watch while having some breakfast.
  • d

    DBSR

    09/03/2021, 9:13 AM
    Hi! I'm using multiple postgres schemas. Is it possible to show which schema a table belongs to in the supabase backend?
  • j

    jonmeyers

    09/03/2021, 9:21 AM
    Awesome to hear! Thanks @e0!
  • l

    lx_23

    09/03/2021, 10:32 AM
    will later supabase self host able to add UI into it?
  • l

    lx_23

    09/03/2021, 10:32 AM
    and prove other self host option other than docker?like k8s, swarm, nomad
  • w

    Waldemar

    09/03/2021, 1:05 PM
    @User just saw that on the title screen of the RLS video it shows
    auth.role()
    . But I can't see it in the docs. I only see
    auth.uid()
    Is it new? I quickly watched the video but couldn't see it there too.
  • w

    Waldemar

    09/03/2021, 1:11 PM
    It would be super useful for our project. I already talked to your team a while ago in Slack. We have many cases where records don't belong to a specific user (like a "profile" record for example), but rather roles. For example we have
    suppliers
    and my users have roles like "Italy Sales Rep", so they should be able to see all
    suppliers
    from Italy.
  • s

    silentworks

    09/03/2021, 1:12 PM
    This is something you would do in your own system, this wouldn't be done using
    auth.role()
    as this only have a few roles. Take a look at https://supabase.io/docs/guides/auth#policies-with-joins as an example
    w
    • 2
    • 4
  • n

    nikivi

    09/03/2021, 1:19 PM
    im trying to get https://github.com/supabase/supabase/tree/master/examples/nextjs-auth for myself but have an issue where when I login, nothing happens
  • n

    nikivi

    09/03/2021, 1:21 PM
    https://github.com/learn-anything/learn-anything is my adapted code
  • n

    nikivi

    09/03/2021, 1:29 PM
    I don't fully understand how the user login should persist in the next.js app
  • n

    nikivi

    09/03/2021, 1:29 PM
    perhaps I have left something out from the example code 🤔
  • n

    nikivi

    09/03/2021, 2:13 PM
    Copy code
    const handleSignIn = async (e) => {
        e.preventDefault();
        setError("");
        setLoading(true);
    
        const { error: signInError } = await supabaseClient.auth.signIn({
          email,
          password,
        });
        if (signInError) setError(signInError.message);
    
        setLoading(false);
      };
  • n

    nikivi

    09/03/2021, 2:14 PM
    will indeed sign in and throw and error is login credentials are wrong. but it doesn't do anything else. should I use the result I get from sign in and save it somewhere?
  • n

    nikivi

    09/03/2021, 2:19 PM
    Copy code
    const signInDetails = await supabaseClient.auth.signIn({
          email,
          password,
        });
    
        const signInError = signInDetails.error;
        const signInUser = signInDetails.user;
  • n

    nikivi

    09/03/2021, 2:19 PM
    I can do this instead and save
    signInUser
    in cookies?
  • n

    nikivi

    09/03/2021, 2:20 PM
    https://supabase.io/docs/guides/auth doesn't really say anything how to best work with auth and next.js / supabase
  • j

    jon

    09/03/2021, 2:20 PM
    also_curious
  • j

    jon

    09/03/2021, 2:23 PM
    hey all, where can i find documentation for go? the links on the github page are dead 😦 https://github.com/supabase/postgrest-go
  • n

    nikivi

    09/03/2021, 2:49 PM
    ok my login page is now just this https://github.com/learn-anything/learn-anything/blob/main/pages/login.tsx, got it from https://github.com/supabase/supabase/tree/master/examples/nextjs-todo-list
  • n

    nikivi

    09/03/2021, 2:49 PM
    what I don't get though is how to then use the auth, it doesn't seem to persist in my supabase client
  • n

    nikivi

    09/03/2021, 2:52 PM
    Copy code
    export default function Home() {
      const { user } = Auth.useUser();
      console.log(user);
    
      return (
        <>
          {!user && (
            <Auth
              supabaseClient={supabase}
              providers={["google", "github"]}
              socialLayout="horizontal"
              socialButtonSize="xlarge"
            />
          )}
        </>
      );
    }
  • n

    nikivi

    09/03/2021, 2:52 PM
    like with above, I'd expect that after I login,
    user
    will return the logged in user?
  • n

    nikivi

    09/03/2021, 2:53 PM
    the login works correctly in that Supabase recognizes the login but my web app doesn't
1...959697...392Latest