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

    arc_theory

    07/28/2021, 11:35 AM
    Sorry, just checked em. It's just build time panic for me as always.
  • a

    arc_theory

    07/28/2021, 11:36 AM
    @User 😅
  • a

    Ant

    07/28/2021, 11:48 AM
    https://discord.com/channels/839993398554656828/839993398554656831/869909081236856852
  • m

    Molimat

    07/28/2021, 12:30 PM
    My problem is solved, just informing.
  • k

    Kosh

    07/28/2021, 12:38 PM
    Hi folks, was wondering if there is an example coming up about storage streaming?
  • a

    a d

    07/28/2021, 12:40 PM
    guys what's difference between storage and table database can someone explain in short i m getting confused
  • a

    Azura

    07/28/2021, 12:46 PM
    @a d storage is to store files like photos, videos, text files, any files that you need to store for later use. Just like Google Drive. Table database is more about object related data. You should see this video for clarity, I think it's an awesome video as well.

    https://youtu.be/HXV3zeQKqGYâ–¾

  • a

    Azura

    07/28/2021, 12:47 PM
    Supabase uses Posgrest and custom SQL so this video will help you with the SQL-side (tables and database operations)
  • a

    a d

    07/28/2021, 12:49 PM
    isee thankyou very much
  • a

    a d

    07/28/2021, 12:50 PM
    @User ++
  • a

    a d

    07/28/2021, 12:50 PM
    oh sorry
  • a

    a d

    07/28/2021, 12:50 PM
    lol
  • w

    wiesson

    07/28/2021, 12:55 PM
    Are there options to append data to the signup method? My use case is that a user needs to register and confirm his/her email address before continue with the checkout of a booking (houses, hotels). Once the mail is confirmed, I'd like to redirect to the checkout of that (houses, hotels), but I'm not sure where to store this information. I could go with a custom API route and use the SDK for the signup and create a profile in advance, but maybe there are other options?
  • a

    Azura

    07/28/2021, 12:59 PM
    You could use web request redirect for that
  • a

    Azura

    07/28/2021, 1:01 PM
    https://yourdomain.abc/login?page=checkout&bookedItem=house1&...
  • a

    Azura

    07/28/2021, 1:01 PM
    Something like this is common for your use case @wiesson
  • a

    Azura

    07/28/2021, 1:02 PM
    After sign up, the user will be redirected to the checkout page with pre-existing data in the cart
  • w

    wiesson

    07/28/2021, 1:03 PM
    Yes, that is totally fine, I was just wondering if and where I could append data to the URL. https://supabase.io/docs/reference/javascript/auth-signup mentions extra options, but "No description provided." Maybe Typescript knows 😉
  • w

    wiesson

    07/28/2021, 1:05 PM
    💡 "redirectTo" is available, I'll try that
  • w

    wiesson

    07/28/2021, 1:05 PM
    Copy code
    async signUp(
        { email, password, phone }: UserCredentials,
        options: {
          redirectTo?: string
        } = {}
      ): Promise<{
        user: User | null
        session: Session | null
        error: Error | null
        data: Session | User | null // Deprecated
      }>
  • w

    wiesson

    07/28/2021, 1:05 PM
    thanks @User
  • a

    Azura

    07/28/2021, 1:12 PM
    No problem, @wiesson. Have a good day.
  • w

    wiesson

    07/28/2021, 1:12 PM
    hmm, no that does not work. The confirmation email does not contain any redirect
  • a

    Azura

    07/28/2021, 1:18 PM
    Apparently you cannot append extra data to the confirmation email. I think you should store the items in cart to database, and then check for boolean value if user is verified or not.
  • a

    Azura

    07/28/2021, 1:18 PM
    And then display the "Pay now" button based on the state
  • a

    Azura

    07/28/2021, 1:19 PM
    @wiesson
  • w

    wiesson

    07/28/2021, 1:34 PM
    hmm, but the cart is public?
  • a

    Azura

    07/28/2021, 1:34 PM
    Nope. Make sure you post the cart content after the account is created.
  • w

    wiesson

    07/28/2021, 1:34 PM
    ah 💡
  • w

    wiesson

    07/28/2021, 1:34 PM
    ok ok, understood - yes 🙂
1...181920...316Latest