Master React Native Authentication with Expo Router & Clerk

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025

Комментарии • 61

  • @galaxies_dev
    @galaxies_dev  Год назад +1

    Get started with Clerk for free: clerk.com/?
    Learn React Native FAST by becoming a member of Galaxies.dev today [FREE] galaxies.dev/reactnative

  • @MatheusBraunaDev
    @MatheusBraunaDev Год назад +6

    I was totally stuck trying to figure out how to use Clerk with Expo router, and bam, this video pops up right when I needed it!

  • @jessechounard
    @jessechounard 9 месяцев назад +7

    At 28:30, signIn and setActive might be undefined because you aren't checking for isLoaded on this screen.

  • @james-perkins
    @james-perkins Год назад +5

    Great video Simon! Thanks for covering Clerk

    • @galaxies_dev
      @galaxies_dev  Год назад +1

      It was awesome James - definitely not the last time I used it 🔥

  • @adriangutierrezalonso7828
    @adriangutierrezalonso7828 Год назад +1

    I was integrating Expo with Clerk and Convex and this video was a lifesaver. Thanks, Simon for this awesome tutorial

  • @SiddhantPrateek-dev
    @SiddhantPrateek-dev 2 месяца назад +1

    clerk if full off headache, i was so locked in to, due to some reason the signup doesn't work, 1 year later i really had a hard time figuring out what was the issue

  • @shadowysuper-coder6120
    @shadowysuper-coder6120 3 месяца назад

    Thank you so much for the tutorial! Overall, it’s very helpful, but at times it’s a bit challenging to follow, especially when you paste dozens of lines of code without much explanation about where they come from, like you did at 10:19. We don’t know where this layout comes from, and I can’t seem to find it in the documentation. A bit more context would really help with understanding the steps better.

  • @stanislavschaefer3233
    @stanislavschaefer3233 Год назад +3

    Can you make a video on migrating from React Router to Expo Router? That's something the Expo documentation is missing, which will be helpful to many beginners.

  • @nicolasaguilar2202
    @nicolasaguilar2202 8 месяцев назад +1

    Simon, weird error here:
    ERROR Error: Not a valid base64 encoded string length
    This error is located at:
    in ClerkProvider (created by RootLayoutNav)
    I followed the steps and worked before but now is not running, any recommendation?
    thanks man!

    • @Raghunadh9
      @Raghunadh9 7 месяцев назад

      JUST UPDDATE YOUR CLERK, MATE npm i @expo/expo-clerk@latest

  • @LuizPauloCamargo
    @LuizPauloCamargo 4 месяца назад

    Hi Simon, why are you using ActivityIndicator in index.tsx even using Spinner from react-native-loading-spinner-overlay package? I try to remove this index.tsx but the Expo doesn't like so much and show "Unmatched Route" error. Is This index.tsx mandatory? tks

  • @shobinsebastian7745
    @shobinsebastian7745 Год назад +1

    I have two user roles in my application one is called 'buyer' and the other one is called 'seller' if the user is registered with the role 'buyer' i need to hide few pages and bottom tab navigators from the user like "Create/Post product page" etc.. and if the user is registered with the role 'seller' then i need to hide some pages and bottom tab navigators from them too..and i have the settings page as a common page for both users but i don't know how to hide these pages from the user's and make the settings page only the common page...how to do that? I am using react native expo

    • @galaxies_dev
      @galaxies_dev  Год назад +1

      That's a very good question - I'll see if I can cover this in a tutorial!

  • @olawumisegun5898
    @olawumisegun5898 Год назад +2

    Thanks for this tutorial, can you please do an over the air update for react native expo app?

  • @epicgameryt4052
    @epicgameryt4052 Год назад +2

    Shouldn't you add the segments constant as a dependency in the useEffect? Now we will just check on the first page visit if there are any segments, but if you console.log this, this segments array will have a length equal to 0.

    • @galaxies_dev
      @galaxies_dev  Год назад +1

      Yeah I think you are right, good catch!

  • @amnashahid9464
    @amnashahid9464 8 месяцев назад

    can this be applied expo less the sdk 49 ?

  • @kh0ng0rzu1ALTANGEREL
    @kh0ng0rzu1ALTANGEREL 10 месяцев назад

    hey, i'm new to this and i want to ask something
    it is somehow connected to base right or clerk do this on own
    can i still do this like this even if i need to merge my backend and frontend

  • @balabala9735
    @balabala9735 7 месяцев назад

    how to use expo clerk in production?

  • @pedrofurtado8444
    @pedrofurtado8444 8 месяцев назад

    I have a base64 error when authenticating the clerk, my expo is on SDK51 version

  • @nikolaus-lukasthomas6288
    @nikolaus-lukasthomas6288 Год назад

    Hi Simon, thanks for the video. I am planning to use something similar, but I will need a backend (let's say nodejs/express). How could I check in the backend if the user is authenticated? Thanks in advance!

    • @YevhenChaban
      @YevhenChaban Год назад

      Hello, if you need to check it on the backend, then you have two different approaches:
      1) use nodejs/express and use Clerk sdk there to check session token
      2) use backend, which can't run Clerk sdk, then just sent you session token(await Clerk.session.getToken()) to the backend, and verify it there ( you cand find how to verify it, if you will type in the google "Manual jwt verification Clerk"
      Both of the approaches are documented in the CLerk documentation : )

  • @matheusesramos
    @matheusesramos Год назад

    What would the structure of folders and routes look like if we used styled-components to style the screens using an external style file? It would be something like: app/(public)/login/index.tsx + styles.tsx?

  • @matkomilic8382
    @matkomilic8382 5 месяцев назад

    The fact that expo router told u /home doesn't exist, I wonder how? Because I have many projects with expo router using typescript and I don't get any warnings?

  • @maslovskyy
    @maslovskyy Год назад

    you're producing a great tutorials, really
    Thanks, for your work

    • @galaxies_dev
      @galaxies_dev  Год назад

      Glad you like them - would be awesome if you could share them on something like Twitter!

    • @maslovskyy
      @maslovskyy Год назад

      Done!)

  • @vilioralex2701
    @vilioralex2701 Год назад

    Thank you for your content SImon, i was looking for a similar video. I have integrated auth via my backend and implemented this in similar way. The only problem i have is that wherever in my app i use either the router.back() or navigation.goBack() it redirects me to the route i replaced in my useEffect. Have you had the same issue?

  • @derekjohnson7768
    @derekjohnson7768 Год назад

    When I try and use a tab navigator in my (auth) layout, it's giving me this error: The action 'REPLACE' with payload {"name":"home"} was not handled by any navigator. What do I do?

    • @mphatsomlenga8948
      @mphatsomlenga8948 Год назад

      use useNavigation from expo-router and not useRouter

  • @Inferno-Ripper
    @Inferno-Ripper Год назад +1

    please make a tutorial on how to add social(google) login to this

    • @galaxies_dev
      @galaxies_dev  Год назад

      Alright, added it to my list!

    • @Inferno-Ripper
      @Inferno-Ripper Год назад

      @@galaxies_dev thanks, btw when i tried this method it worked with only email and password fields, but when i tried adding additional fields like username, fullname etc the auth was not working. i have now switched to supabase

    • @jjrkkj
      @jjrkkj Год назад

      heyy, did you get it? i am searching a lot for tutorials so i can authenticate google with clerk using custom flow, i need heeelp

  • @rahmatsulistio
    @rahmatsulistio Год назад

    its cool, but how to handle authentication using jwt that send from backend?

    • @galaxies_dev
      @galaxies_dev  Год назад

      Why would you add Clerk if you already have your own JWT auth?

    • @rahmatsulistio
      @rahmatsulistio Год назад

      I mean how to handle authentication using jwt in Expo and expo router v2 without clerk? I'm still confused looking at the documentation, how to save the token and validate when the user reopens the application

  • @alexleung842
    @alexleung842 Год назад

    I'm trying to get Next.js + Capacitor + Clerk working and having issues. Basically I need App Links to work right? Not easy for local development.

    • @galaxies_dev
      @galaxies_dev  Год назад

      Haven't found the best way for Next + Capacitor yet tbh :/

  • @JokeBookGames
    @JokeBookGames Год назад

    You know, i want to love expo-router, the authentication part is just not working for me like a user expects. Lets say ur authenticated and u open app, there will be a flicker bcs of navigate from default stack to authenticated stack i got around this by increasing the splashscreen, but after that i faced many other issues such as a delay between paginate and many more.
    I way more prefer the unmounting of the screens like we do in react-navigation.

  • @paveljadevic7351
    @paveljadevic7351 Год назад

    HELP!
    I've pretty much coppied git code to my project and I have problem with registration. When I add my email and password it redirects me to verify page as it should. But when i fill the verification code from email it spins loading for second and thats it. It does'nt register me or sends me to home page.
    There is litteraly same code except Im using .js instead of .tsx.
    Did anybody had same problem?
    plus there is waring: "The `redirect` prop on is deprecated and will be removed. Please use `router.redirect` instead at Screen" but I dont thing it has to do something with problem above.

    • @dylanmengzhou
      @dylanmengzhou Год назад

      same problem over here, did you figure out?

  • @teamarceus7077
    @teamarceus7077 6 месяцев назад

    Can i use clerk in react-native-cli? anyone?

  • @AnoNymous-el6mr
    @AnoNymous-el6mr Год назад

    Hello @Simon, very nice tutorial
    I followed all the steps, however regarding the last step which consist about updating the user info, I get this error :
    Message:
    Status:422
    Serialized errors: {"code":"form_param_unknown","message":"is unknown","longMessage":"first_name is not a valid parameter for this request.","meta":{"paramName":"first_name"}},{"code":"form_param_unknown","message":"is unknown","longMessage":"last_name is not a valid parameter for this request.","meta":{"paramName":"last_name"}}
    Can you help understand why, and let me know if it's due to a clerk's update or anything
    Thanks in advance

    • @galaxies_dev
      @galaxies_dev  Год назад

      You have to enable updating that field in the Clerk settings for users!

  • @puritymwanzi1889
    @puritymwanzi1889 6 месяцев назад

    Is anyone getting alert is invalid

  • @Del4k1
    @Del4k1 Год назад +1

    make more cursors about angular

  • @MrAvelino2010
    @MrAvelino2010 Год назад

    Make PWA with Expo and Expo Router