https://supabase.com/ logo
Join Discord
Powered by
# ideas-and-suggestions
  • s

    Scott P

    07/27/2021, 11:21 AM
    That's how you handle localstorage in an expo app, and this (https://supabase.io/docs/reference/javascript/auth-signin#sign-in-using-a-refresh-token-eg-in-react-native) is how you handle Auth in expo with Supabase
  • m

    mikeoflegend

    07/27/2021, 11:23 AM
    Thanks! So if I’m reading this correctly you are changing the localstorage dependency in the js SDK to async storage?
  • s

    Scott P

    07/27/2021, 11:24 AM
    That's correct. On web, it will map to localstorage in the browser, but in mobile, it'll map to device storage via async-storage
  • s

    Scott P

    07/27/2021, 11:25 AM
    That component goes at the root of the app (e.g. put your navigation component inside it if you're using react-navigation), and then you can use the
    use-supabase
    library to access auth via a hook:
    const { auth } = useSupabase();
    app.tsx
    might looks like this:
    Copy code
    ts
    return (
      <SupabaseWrapper>
        <Navigator />
      </SupabaseWrapper>
    )
    You can have other wrappers above or inside the
    SupabaseWrapper
    , but anything which needs to interact with Supabase needs to be inside it
  • b

    bidipeppercrap

    07/27/2021, 1:41 PM
    New pricing plan for removing Inactivity Pausing on existing Free Plan please...
  • a

    Andrioid

    07/27/2021, 1:43 PM
    Is there anything preventing you from using the js client? I’ve been playing with Expo and Supabase without any issues
  • d

    dperrera

    07/27/2021, 1:45 PM
    Suggestion: Maybe there should be a #questions channel in here? For instance, I'm wondering what sort of testing strategies people are using for Supabase but it's kind of a deep dive.
  • u

    user

    07/27/2021, 2:19 PM
    +1 for testing strategies
  • u

    user

    07/27/2021, 3:23 PM
    If I wanted to ask a question about best security practices, would those go here? Or in another channel?
  • c

    copple

    07/27/2021, 3:29 PM
    Discussions! https://github.com/supabase/supabase/discussions
  • w

    wilfredinni

    07/27/2021, 4:46 PM
    Hi! I was thinking how awesome it would be if we could also deploy the frontend on Supabse 👀
  • h

    hips

    07/27/2021, 5:10 PM
    they've deployed the sourcemap
  • s

    Scott P

    07/27/2021, 5:21 PM
    They're working on releasing the dashboard as 'Supabase Studio', but it's still a work in progress
  • p

    PabloHDev 🇧🇷

    07/27/2021, 7:46 PM
    Hi! we don't have any official package to react native of supabase, right? I would like to start an exclusive supabase sdk for the native react.
  • s

    Scott P

    07/27/2021, 7:51 PM
    The supabase-js library works just fine with RN
  • q

    quicksnap

    07/27/2021, 9:42 PM
    Can confirm, have been using it in RN for a few months
  • d

    DeadlyDev

    07/27/2021, 10:15 PM
    @User killer job on the new storage stuff! The media streaming got me thinking. How close is that to having some streaming video and audio. Like what discord does here with audio and video chats. We are currently working on this at lobby but if we could make this work through supabase I would love to work together to make that happen.
  • c

    cdedreuille

    07/27/2021, 10:16 PM
    I guess this page can now be updated based on today's announcements: https://supabase.io/docs/guides/local-development "We have not yet added Storage to the local development suite."
  • c

    copple

    07/28/2021, 1:57 AM
    true! Can anyone help with a PR? It's worth 500XP 🙂
  • f

    Flyken

    07/28/2021, 2:02 AM
    whats the pr? idk if i can help but hey
  • f

    Flyken

    07/28/2021, 2:06 AM
    oh wait
  • f

    Flyken

    07/28/2021, 2:06 AM
    oh i think i see
  • e

    everconfusedguy

    07/28/2021, 2:15 AM
    You should definitley be able to do this now @User . @User is using Storage for audio files and @User is using them for video files in their applications. We are working on integrating with a CDN as well
  • l

    lawrencecchen

    07/28/2021, 2:31 AM
    https://github.com/supabase/supabase/pull/2600 🙂
  • p

    PabloHDev 🇧🇷

    07/28/2021, 2:35 AM
    Alright!, I had some problem with authentication with react native. Maybe I not implement correct
  • l

    lawrencecchen

    07/28/2021, 2:37 AM
    Can you also merge https://github.com/supabase/gotrue-py/pull/3/files while you're at it please? Had to do some python fun and needed this :3
  • c

    copple

    07/28/2021, 2:38 AM
    Let me check with the Python maintainers!
  • d

    DeadlyDev

    07/28/2021, 2:38 AM
    you have to do some tinkering. Make sure you hook up
    Copy code
    @react-native-async-storage/async-storage
    supabase will use this instead of localstorage. Next, you will get an error around url search params, need a polyfill. Here is a little thing about it. https://justinnoel.dev/2020/12/08/react-native-urlsearchparams-error-not-implemented/
  • p

    PabloHDev 🇧🇷

    07/28/2021, 2:39 AM
    sounds good! i will check that, thanks
  • a

    alighn

    07/28/2021, 2:59 AM
    I have an idea which I think is a good one. Modularity With this feature you can make modules which contains certain database scheme, roles and etc which can simplify creating further projects.
12345...32Latest