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

    dottelsc

    10/01/2021, 2:50 PM
    Copy code
    create table user_roles (
      id bigint generated by default as identity primary key,
      user_id uuid references auth.users not null,
      role_definition_id bigint references role_definitions (id)
    );
    Why does auth.users correctly reference a foreign key but if I do role_definitions.id it says schema permissions doesn't exist?
  • h

    HarryET

    10/01/2021, 6:47 PM
    Hey! Is the provider token the token that is issued by the provider?
  • j

    JanR

    10/01/2021, 8:23 PM
    I have a question regarding authentification with supabase goTrue service. I need to support a third party provider which offers oAuth2 and OpenID connect. Unfortunately it is not yet directly supported by supabase. What do I need to do to integrate an unsupported auth provider in my supabase project? Firebase does support a general oAuth2 authentication flow but I would prefer not to go back to Firebase. Related github issue (not by me): https://github.com/supabase/gotrue/issues/159 If I create a PR (with tests 😉 ) to add a rather niche third party auth provider ORCID (big in research community), will it get merged?
  • c

    chasers

    10/01/2021, 8:58 PM
    I'm trying to get query results aggregated into their own field because Zapier doesn't seem to handle an array as a response body... For this query
    curl 'https://ixlqpcigbdlbmfnvzxtw.supabase.co/rest/v1/buyers?select=json_agg%28buyers%29'
    I get
    {"hint":"If a new foreign key between these entities was created in the database, try reloading the schema cache.","message":"Could not find a relationship between buyers and json_agg in the schema cache"}
    and am wondering what I'm doing wrong. Works great in the sql editor. Many thanks!
    s
    s
    • 3
    • 7
  • c

    chasers

    10/01/2021, 9:24 PM
    Okay so now I'm just trying to setup the PostgreSQL app in Zapier vs going through the REST endpoint but I get this:
  • c

    chasers

    10/01/2021, 9:25 PM
    Trying to setup this no-code thing for someone and I'm about to just code it 😄
  • c

    chasers

    10/01/2021, 9:25 PM
    Would have been done by now.
  • c

    chasers

    10/01/2021, 9:25 PM
    I can successfully connect to my Supabase db via another Postgres client.
  • s

    silentworks

    10/01/2021, 9:52 PM
    Foreign keys errir
  • h

    HarryET

    10/01/2021, 11:22 PM
    Hey! I have this query:
    Copy code
    id,
                chat_id,
                members (
                  id,
                  nickname,
                  auth.users (
                    raw_user_meta_data
                  )
                ),
                created_at,
                edited_at
    but get a 400 back with
    Copy code
    json
    {
       "hint":"If a new foreign key between these entities was created in the database, try reloading the schema cache.",
       "message":"Could not find a relationship between members and auth in the schema cache"
    }
    Even though i do have a forign key between members and auth.users
    s
    • 2
    • 2
  • s

    silentworks

    10/02/2021, 1:22 AM
    Querying auth.users
  • r

    Rossveth

    10/02/2021, 2:52 AM
    I'm in this boat. Were you able to find a solution for this? I've tried to research but still coming up empty.
    s
    • 2
    • 1
  • j

    jak

    10/02/2021, 9:42 AM
    Hey Folks! Is it possible to add new columns to the auth user table in supabase? Ideally, i'd like to add a column for the users role.
    b
    b
    • 3
    • 4
  • b

    bnjmnt4n

    10/02/2021, 10:20 AM
    Modifying auth.users
  • e

    eunjae

    10/02/2021, 10:55 AM
    Unfortunately I ended up updating the name on the server side which has full access compared to user's browser. But I actually didn't do the proper authentication on the server side when the browser asks it to update the name. So I'm not so comfortable with it 🤞
  • y

    YogurtDrinker

    10/02/2021, 11:06 AM
    I'm trying to create a cron job that checks my database row and if its lesser than the current time delete it. I can't find the function called
    Now()
    though
  • y

    YogurtDrinker

    10/02/2021, 11:43 AM
    Nvm apparently
    CURRENT_TIME
    works
  • n

    Nig0

    10/02/2021, 12:02 PM
    Is it possible to add authorized domains to supabase which are then recognized when sending authentication emails? Correct me if im wrong but i think its currently possible for anyone on the internet to copy my supabase_url and supabase_key, which i passed to the createClient function, and then send for example magic links to random emails in the name of my supabase project.
  • l

    Lautaro Pereyra

    10/02/2021, 2:23 PM
    Hi devs, can someone explain to me what the transfer limit refers to?
  • s

    Scott P

    10/02/2021, 3:01 PM
    It relates to object storage, as that's where it appears in the table
  • h

    Hal

    10/02/2021, 3:31 PM
    I have generated types using openapi-typescript as in the docs, but how do I use it on joins? because it only has definitions for each table and not including foreign key relationships
  • p

    Poypoypoy

    10/02/2021, 4:38 PM
    im free tomorrow anyone want help?
  • d

    dhzdhd

    10/02/2021, 5:37 PM
    i get this error when i try to delete rows from a table
  • d

    dhzdhd

    10/02/2021, 5:37 PM
    it removes the rows in the UI
  • d

    dhzdhd

    10/02/2021, 5:37 PM
    but when i press refresh, the rows come back
  • d

    dhzdhd

    10/02/2021, 6:45 PM
    seems like my problem is similar to this
  • d

    dhzdhd

    10/02/2021, 6:45 PM
    so i just use sql to delete records?
  • m

    Mihai Andrei

    10/02/2021, 7:54 PM
    Yes
  • l

    larryM

    10/03/2021, 2:03 AM
    is it possible to view the public schema on the dashboard? my queries are now returning "permission denied for schema public" and im not sure why
  • s

    silentworks

    10/03/2021, 2:07 AM
    I'm going to guess you turned on row level security and you didn't have it on before
1...99100101...316Latest