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

    jianjie

    08/07/2021, 9:25 AM
    bingo
  • p

    Poypoypoy

    08/07/2021, 9:25 AM
    your correct man
  • p

    Poypoypoy

    08/07/2021, 9:26 AM
    thanks man for your response 🙂 ,
  • s

    s u s h i

    08/07/2021, 3:00 PM
    Hello guyss, So i tried creating a profiles for users a bit similar to what we can found on supabase quickstart with policies and buckets for an avatar. After that I began to create some way for the user to upload a photo for their avatar and then after uploading, I retrieved the photoURL of the uploaded photo and inserted it to the avatar_url of its corresponding profile table.... Now the problem is, when I try to get the photo via the URL, it shows 404 error..
  • s

    sherlock

    08/07/2021, 3:08 PM
    Posted in the general channel before noticing this one, so cross posting here. Any help would be appreciated! https://discord.com/channels/839993398554656828/839993398554656831/873554158542794833
  • p

    Poypoypoy

    08/07/2021, 3:37 PM
    guys: even i change site Url as (http://localhost:3000/auth/login) , when im trying to click the email confirmation its always redirect me here (http://localhost:3000/#)
    l
    • 2
    • 7
  • k

    Kosh

    08/07/2021, 3:45 PM
    @Poypoypoy use additional redirect urls.
  • h

    HoXsan

    08/07/2021, 6:22 PM
    Hi guys, is it possible to call third party API within supabase or postgres? Eg. I want to create user in Stripe, when a new user is created in Supabase. When calling the create API within Stripe, i want to store the stripe user ID in my Supabase DB. Is it possible to do it with supabase?
    b
    j
    • 3
    • 11
  • n

    nicholaschiang

    08/07/2021, 6:24 PM
    How do I create a PostgreSQL function (that can be called using
    supabase.rpc
    ) that will run the following query?
    Copy code
    pgsql
    select distinct on (view_users.id) view_users.*
    from relation_meeting_people relation_meeting_people1
    join relation_meeting_people relation_meeting_people2
    on relation_meeting_people1.meeting = relation_meeting_people2.meeting
    join view_users
    on relation_meeting_people2.user = view_users.id
    where relation_meeting_people1.user = 'p5W8EB2YKReYAJz334UGMDi6m9H2';
    And will replace
    'p5W8EB2YKReYAJz334UGMDi6m9H2'
    with the
    user_id
    passed to the function?
    • 1
    • 1
  • n

    nicholaschiang

    08/07/2021, 6:44 PM
    PostgreSQL function
  • b

    burggraf

    08/07/2021, 8:07 PM
    Third Party APIs
  • e

    erik_flywheel

    08/07/2021, 9:49 PM
    Hey everyone, apologies if some of this is pretty basic, but I come from a solid no code background and I'm building an integration with Adalo, using Supa as a the backend. Going to have a lot of questions in the near future
  • e

    erik_flywheel

    08/07/2021, 9:50 PM
    first one is - does supa auth automatically create a uuid for each user and how do you get that value? when you create the profile table, it links to the uuid from the users table, but there isn't a table there
  • e

    erik_flywheel

    08/07/2021, 9:51 PM
    I tried to run a script to get the uuid, assuming it was hidden in the supa ui, but it said there wasn't a field for that
  • s

    s u s h i

    08/08/2021, 12:19 AM
    Yes it automatically creates a uuid everytime you create a user, I don't really know much about Adalo, but if it uses js then you can pretty much use all the pre made javascript code on your API tab, for example, getting user information should be
    Copy code
    javascript
      const user = supabase.auth.user()
  • s

    s u s h i

    08/08/2021, 12:20 AM
    assuming you are logged in, then it retrieves the user info with uuid, but if you are not logged in it just returns null value
  • d

    Dots

    08/08/2021, 2:31 AM
    if anyone is into pair programming and wants to help a brother out - working on some middleware and was curious about my current archeticture on it.
  • p

    Poypoypoy

    08/08/2021, 2:50 AM
    yeah, im willing
  • s

    Sophic

    08/08/2021, 3:27 AM
    Trying to understand some auth behavior. I am having users authenticate with discord. A user changed their email on discord and it appears that a new user was created. Which in turn had them no longer connected to their profile etc as I am using the user id to associate them. I was able to resolve this but is it expected behavior?
    b
    • 2
    • 4
  • b

    burggraf

    08/08/2021, 3:40 AM
    Auth - changed emails
  • b

    bh

    08/08/2021, 4:39 AM
    with storage.from.createSignedUrl() - what is the max value allowed for expiresIn?
  • s

    s u s h i

    08/08/2021, 6:28 AM
    I reallyy don't know about max value, but I made mine to 31556926, which I searched in google as equivalent to 1 year
  • u

    65536william

    08/08/2021, 7:44 AM
    What kind of data should go in
    user_metadata
    vs the row for the user in the database? Is there a best practice either way?
  • t

    TechmandanCZ

    08/08/2021, 9:18 AM
    Can I make custom auth provider? I'd like to still take advantage of RLS, but source the JWT elsewhere (I have my own auth provider). Easiest would be if Supabase supports generating tokens like firebase does using
    createCustomToken
    with the user ID and service token.
    • 1
    • 2
  • l

    lnraahCC

    08/08/2021, 11:22 AM
    Hello, I have fully config the SMTP service using the information provided by AWS SES. But this service didnt work and keep showing" Error sending confirmation mail" while handling user registration. I have successfully sent test email via AWS SES to my mail box, and it's actually work. But when I set it in Supa, it got a problem. Anyone have experience in configuring AWS SES and supabase SMTP config??? Thank you.
  • e

    erik_flywheel

    08/08/2021, 2:28 PM
    okay, thanks for this. We can't embed JS into adalo, but I figured out why I couldn't find the id originally, the field was id, not uuid 🤦‍♂️
  • a

    Advist

    08/08/2021, 2:42 PM
    Hello ! Is it possible to use authentication using different tables. For example, for one app use the 'User' table to log in and in another app use the 'Company' table and in another app use the 'Admin' table?
  • e

    erik_flywheel

    08/08/2021, 2:55 PM
    Good morning, does anyone know how we can filter queries through the REST API? I see the example for range in the docs, but let's say I need to show all transactions for a company a user works for, how would I structure that API call?
  • m

    magicquin

    08/08/2021, 4:51 PM
    Hi All, which would be the best way to restart my project from scratch and remove all current data and tables etc...
  • c

    cp

    08/08/2021, 6:26 PM
    If I have a one to many relationship, how can I properly join and filter? What i have right now is
    Copy code
    response_time, UserSites (Url, user_id)
    but i'd like to filter the matches by the user_id
1...394041...316Latest