https://supabase.com/ logo
Join DiscordCommunities
Powered by
# off-topic
  • l

    Luc

    05/25/2022, 4:27 PM
    Copy code
    jsx
    function MyApp({ Component, pageProps }: AppProps) {
      const [session, setSession] = useState(null)
    
      useEffect(() => {
        setSession(supabase.auth.session())
    
        supabase.auth.onAuthStateChange((_event, session) => {
          setSession(session)
          console.log(session)
        })
      }, [])
    
      return (
        <PageWrapper>
          <Component {...pageProps} />
        </PageWrapper>
      )
    }
    g
    • 2
    • 3
  • l

    Luc

    05/25/2022, 4:28 PM
    I followed supabase docs to stay authenticated, but everytime i go to an other window, the session logs
  • l

    Luc

    05/25/2022, 4:28 PM
    idk wtf is happening
  • l

    Luc

    05/25/2022, 4:28 PM
    any help?
  • d

    doctorpangloss

    05/25/2022, 4:48 PM
    do you have a preferred way to call other APIs from within sql?
  • d

    doctorpangloss

    05/25/2022, 5:26 PM
    can i call pgsql functions via a postgres_fdw?
  • o

    Olyno

    05/25/2022, 5:58 PM
    Hi Please think to use #843999948717555735 next time to ask, it would be a better place πŸ™‚
  • w

    Waldemar

    05/25/2022, 6:03 PM
    I've just noticed that the "Coming soon" note is no longer appearing under the CDN block on the Storage page: https://supabase.com/storage ...but I couldn't find any announcement about this on the blog or here. Background: we move our DB to Supabase, but since we are very media-centric business, I was planning to use something like Cloudflare Images to transform (resize, change format etc.) and host the photos from CDN ...but then we also have a bunch of other files we need to store and serve in our backoffice app (performance not critical), and Cloudflare Images is only, well, for images. Plus our photos and other files are linked to various tables, so it would be good to have them close, i.e. in Supabase. So in summary: 1) Is CDN now officially working with Supabase Storage? 2) Any idea at all when the Transformations will be available? A month, two, four? We can wait a few months, but if it takes longer, I might just transform them before uploading to Storage for now. Thanks!
    b
    g
    • 3
    • 3
  • b

    burggraf

    05/25/2022, 7:28 PM
    Storage | Store any digital content
  • z

    zavbala

    05/25/2022, 11:50 PM
    Hey I'm creating a table from supabase website, and I've imported data from my spreadsheet, so I can't upload it cause a
    duplicate key value violates unique constraint
    is triggered
    g
    • 2
    • 3
  • z

    zavbala

    05/25/2022, 11:51 PM
    My spreadsheet have 4000 rows
  • z

    zavbala

    05/25/2022, 11:51 PM
    Is this the reason?
  • z

    zavbala

    05/25/2022, 11:52 PM
    What means this message? I am picking the ID ( int8 ) column as my primary key
  • l

    Luc

    05/26/2022, 3:43 PM
    Copy code
    ts
      const onStartup = async () => {
          if (supabase.auth.session()) {
            if (router.pathname === "/prijava") {
              await router.push("/")
            }
            userState.user_id = supabase.auth.session().user.user_metadata.id
            userState.user_displayName =
              supabase.auth.session().user.user_metadata.name
            userState.user_email = supabase.auth.session().user.user_metadata.email
            userState.user_photoUrl =
              supabase.auth.session().user.user_metadata.avatar_url
            userState.user_isAuth = true
            setLoading(false)
          }
    
          const auth = supabase.auth.onAuthStateChange(async (event, session) => {
            if (event === "SIGNED_IN") {
              userState.user_id = session.user.user_metadata.id
              userState.user_displayName = session.user.user_metadata.name
              userState.user_email = session.user.user_metadata.email
              userState.user_photoUrl = session.user.user_metadata.avatar_url
              userState.user_isAuth = true
              setLoading(false)
            }
            if (event === "SIGNED_OUT") {
              userState.user_id = null
              userState.user_displayName = null
              userState.user_email = null
              userState.user_photoUrl = null
              userState.user_isAuth = false
              await router.push("/prijava")
              setLoading(false)
            }
          })
          
      }
    • 1
    • 1
  • l

    Luc

    05/26/2022, 3:49 PM
    please help
  • o

    Olyno

    05/26/2022, 5:41 PM
    Hi please use the #843999948717555735 channel, this is a more adapted place to ask your question πŸ˜€
  • l

    Luc

    05/26/2022, 5:42 PM
    πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€
  • n

    nahtnam

    05/26/2022, 11:49 PM
    So if we want to store first name, last name, we should create an associated profiles table right?
    g
    • 2
    • 2
  • n

    nahtnam

    05/27/2022, 12:24 AM
    I've been stuck on "Connecting to project" for five minutes, are free projects usually this starved? My other free project opens instantly
  • b

    Baker XBL

    05/27/2022, 12:33 AM
    I’m also unable to connect at the moment (on a paid plan)
  • g

    garyaustin

    05/27/2022, 12:38 AM
    Seems to be a broad issue going on, my instances on east and west US are not responding...
  • c

    coxley

    05/27/2022, 12:47 AM
    Yeah, I'm getting Cloudflare errors when trying to authenticate
  • g

    gomflo

    05/27/2022, 1:00 AM
    me 2
  • a

    alex-visto

    05/27/2022, 1:04 AM
    same here
  • g

    garyaustin

    05/27/2022, 1:25 AM
    Seems back up for East and West US
    m
    • 2
    • 1
  • g

    garyaustin

    05/27/2022, 1:48 AM
    https://status.supabase.com/ has updated now
  • g

    gomflo

    05/27/2022, 1:56 AM
    yeah its still not stable, im getting Cloudflare is currently unable to resolve your requested domain time to time
  • c

    CornusAmmonis

    05/27/2022, 1:58 AM
    I'm getting CORS errors in my application still
  • c

    CornusAmmonis

    05/27/2022, 1:59 AM
    It's consistently failing too
  • v

    VM

    05/27/2022, 2:00 AM
    Same, some features on our app aren’t working, also getting the β€œconnecting to project” screen
1...226227228...392Latest