React native authentication with REST API tutorial

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 132

  • @Tech-3883
    @Tech-3883 5 місяців тому +1

    I implemented and learned how to integrate JWT-based basic Authentication in react native. To follow this tutorial you need your backend. generally, I never follow tutorials that have no voice explanation but this is recommended. Thanks for tutorials

    • @codeforyou
      @codeforyou  3 місяці тому

      I will create tutorial with voice ☺️

  • @shadoorolo9246
    @shadoorolo9246 2 роки тому +6

    great video, simple and clean, would be nice if you would talk and explain what are you doing while writing code

  • @ginoallisonrasoanaivo4484
    @ginoallisonrasoanaivo4484 6 місяців тому

    simple, methodical, clear, it's all here
    thank you

  • @devrajsinghrathore275
    @devrajsinghrathore275 2 роки тому +1

    Great video for a beginner....helped me a lot❤❤

  • @jalilmzili2489
    @jalilmzili2489 Рік тому

    eh mec tu es trop fort continue comme ça l'ami

  •  2 роки тому +2

    great video, please do more content like this

    • @codeforyou
      @codeforyou  2 роки тому

      Thank you 💕
      Please stay with me by subscribing channel.

  • @surfacebeauty5101
    @surfacebeauty5101 Рік тому +1

    Hi i follow the tutorial but after login page not redirect to the Home Screen.

  • @DenAnge
    @DenAnge 2 роки тому

    Excellent video. Thanks for taking the time

  • @karldtrumpeter
    @karldtrumpeter 2 роки тому

    This helped me a great deal. Thanks so much!!!

  • @quaysondavid9210
    @quaysondavid9210 2 роки тому +2

    Hello, Wonderful video i am following your code and i got this as an error "Cast to ObjectId failed for value "undefined" (type string) at path "_id" for model "User"" what do i do please?

  • @c4custom490
    @c4custom490 2 місяці тому

    i am getting render error
    RNSScreenStackHeaderConfig was not found in UIManager

  • @tyokuncoro8129
    @tyokuncoro8129 2 роки тому

    thank you for the tutorial it is really help me doing my job.,

  • @tari3l328
    @tari3l328 Рік тому +1

    Hello, thank's for this insane video, I have just a question, how did you redirect to HomeScreen after logged it ? Thanks a lot

  • @andrihadianto4473
    @andrihadianto4473 Рік тому

    Thank you so much for this tutorial

  • @fmaylinch
    @fmaylinch Рік тому

    Hi, thanks so much for this example. I had a problem with Spinner. I copied your classes to a project created with `npx create-expo-app`, and the app crashed when going from Login to Home. If I remove Spinner from Login it works (but if I remove it just from Home, it still crashes).

  • @iosdeveren
    @iosdeveren 2 роки тому +1

    How can I refresh my access token automatically when it expires? I used your code ;( but Im struggling with this problem

  • @jokokentir666
    @jokokentir666 9 місяців тому

    Thank youu . You save me 😊

    • @codeforyou
      @codeforyou  9 місяців тому

      You are welcome 🤗

  • @elcochinote5390
    @elcochinote5390 Рік тому

    Thanks so much for this work

  • @mvn3949
    @mvn3949 Рік тому

    Nice video, do you also have complete crud operations with REST API video? That would be great.

    • @codeforyou
      @codeforyou  Рік тому

      Thank you 😊
      Please check my another video ☺️

  • @Panagiwthsnufc
    @Panagiwthsnufc Рік тому +1

    TypeError: undefined is not an object (evaluating '_useContext.login'). This error has troubled me a lot, any ideas guys??? thanks

    • @Panagiwthsnufc
      @Panagiwthsnufc Рік тому +1

      found it after 3 hours, i havent imported and used the component to the higher level of the application.

  • @anupamsharma3417
    @anupamsharma3417 Рік тому

    Sir, i have a nested drawer and a stack navigator , how do i implement this splash screen there.

  • @vannakdy4974
    @vannakdy4974 Рік тому

    Good demo

  • @purhanantyoaribowo6045
    @purhanantyoaribowo6045 Рік тому

    sir, i have problem. undefined is not a function.

  • @alwanassyauqi6191
    @alwanassyauqi6191 2 роки тому +2

    im following your code, but i got an error in setUserInfo(UserInfo). It said objects are not valid as a React child (found: object with keys .....) if you meant to render a collection of children, use an array instead. What is the issue? why your code not working on me?

    • @codeforyou
      @codeforyou  2 роки тому +1

      Please check the instructions carefully, hopefully you be able to make if perfect.

    • @dolls.ahya3
      @dolls.ahya3 2 роки тому

      same as error also me

    • @DanielMoreno-np4ze
      @DanielMoreno-np4ze 2 роки тому

      Were you able to resolve that?

    • @binhnguyenthanh9011
      @binhnguyenthanh9011 2 роки тому

      same as error also me. Did you fix it?

    • @fiecl4383
      @fiecl4383 2 роки тому

      just uncomment/remove the ones with 'val' since you probably used it with useContext

  • @mstintern2894
    @mstintern2894 Рік тому

    Best Video , Thanks for Posting How ever I'm facing issues on Parameters . it says "message": "invalid parameters", "success": false

  • @entertainmentzone6496
    @entertainmentzone6496 Рік тому

    hello there, how did you get the lumen dashboard

  • @codeprovs
    @codeprovs Рік тому

    why you don't use react navigation?

  • @leink.
    @leink. Рік тому

    Hello, how i can passed Data the LoginScreen to HomeScreen

  • @mariahyvonnebyamugisha8865
    @mariahyvonnebyamugisha8865 11 місяців тому

    Thank you for the video. SOme good stuff here. Please add the link to the video that you used to create the APIs. Thanks🥺

    • @codeforyou
      @codeforyou  11 місяців тому

      You are awesome 👍

  • @d-hopegroup8-sr5fr
    @d-hopegroup8-sr5fr Рік тому

    What software did you use to create the rest api? (HRMS Mean?)

  • @YannAriell
    @YannAriell 2 роки тому

    If i used Django rest framework and i returned jwt value ?

  • @rajubelagali2191
    @rajubelagali2191 Рік тому

    Hi can anyone help i am getting this issue
    TypeError: undefined is not an object (evaluating '_useContext.isLoading')

  • @rashmiyadav9171
    @rashmiyadav9171 2 роки тому +1

    Hello sir,
    Thank for share your awesome experience but I got an error on when do I execute the code that
    TypeError: undefined is not an object (evaluating '_useContext.isLoading')
    I have change the Base_url and put it there my api but it throws the error.
    Please help me to resolve this error.

    • @browinlopez521
      @browinlopez521 2 роки тому

      I have the same error

    • @browinlopez521
      @browinlopez521 2 роки тому

      did you manage to solve it?

    • @beta9604
      @beta9604 2 роки тому

      help, i have the same error

    • @DenAnge
      @DenAnge 2 роки тому +1

      You are probably importing the AuthContext without curly braces.
      USE THIS ----> import { AuthContext } from '../contexts/AuthContext'
      NOT THIS ---> import AuthContext from '../contexts/AuthContext'

    • @lewisuehjo6128
      @lewisuehjo6128 Рік тому

      someone solve this ? I imported it correctly... with {} I mean

  • @kewlkeat
    @kewlkeat Рік тому

    From where does the token comes from ? Is it from jwt?

  • @teegee_of_africa
    @teegee_of_africa Рік тому

    pls, how can we get the lumen dashboard

  • @hahoang-br5ju
    @hahoang-br5ju 2 роки тому

    Request failed with status code 422???? how to fix

  • @mohtalifaema5571
    @mohtalifaema5571 Рік тому

    Thanks a lot💕

  • @a1ero
    @a1ero 2 роки тому +1

    Error: Objects are not valid as a React child (found: object with keys {register}). If you meant to render a collection of children, use an array instead. How to fix the error? Could you tell? 😊

    • @fiecl4383
      @fiecl4383 2 роки тому +5

      You probably forgot to uncomment/remove the 'const val = useContext..' just remove all of these and it should work fine!

    • @a1ero
      @a1ero 2 роки тому

      @@fiecl4383 not working. mb something with the compiler? :(

    • @loganathan2010
      @loganathan2010 Рік тому

      @@a1ero Make the app.js inside the provider

    • @a1ero
      @a1ero Рік тому

      @@loganathan2010 ty, i've already figured it out :)

    • @ronaldocerbo2878
      @ronaldocerbo2878 Рік тому

      @@a1ero what changes did you do?

  • @hongucle5774
    @hongucle5774 2 роки тому

    if i "post" new data to api/login like you, the username will be create more and more with email:input, password: input, but the username/name become "username1", "username2" ..... for more attemp, how to fix this bro, can we change the method to "get" then find "username" when email = input email, and password = input pass ?

    • @loganathant9840
      @loganathant9840 2 роки тому

      You have to work with the backend to accept unique names

  • @Evil_E_ye
    @Evil_E_ye Рік тому

    That is not how you do persistence.
    There should be refresh token and its cycle its good for beginners but if you want to make a serious build this is not the option you should go for. For security purposes.

  • @niroth2378
    @niroth2378 2 роки тому

    thank you so much❤

  • @RyokoInFrance
    @RyokoInFrance 5 місяців тому

    Merci ❤

  • @robertmandalac5921
    @robertmandalac5921 2 роки тому +1

    Hi,
    what plugin or settings do you use for automatic import?
    You typed and automatically imported {View} from 'react-native';
    also with useState was added up, import React, {useState} from 'react';

  • @markangelo4423
    @markangelo4423 Рік тому

    More tutorial like a real project for react native pls 🙏

  • @rjonathan87gmail
    @rjonathan87gmail 2 роки тому

    Error: Objects are not valid as a React child (found: object with keys {isLoading, login}). If you meant to render a collection of children, use an array instead.

  • @puneetkumar3184
    @puneetkumar3184 Рік тому

    Hello sir how to find own Android react native app baseURL

    • @sgjcosmo
      @sgjcosmo Рік тому

      Base Url is your api endpoint url.

  • @nelsonraj5274
    @nelsonraj5274 Рік тому

    where can i get BASE URL

  • @stevebero8376
    @stevebero8376 Рік тому

    login error AxiosError: Network Error
    register error AxiosError: Network Error
    WHY ?????

  • @trunkey-dev
    @trunkey-dev 2 роки тому

    nice video

  • @reegajenet795
    @reegajenet795 2 роки тому

    sir error in
    Running "rn_auth" with {"rootTag":1}
    LOG Running "rn_auth" with {"rootTag":11}
    LOG register error Error: Network Error
    what is the issue
    how do fix it sir

    • @codeforyou
      @codeforyou  2 роки тому

      Please follow the instruction carefully, hopefully you will be able to solve it.

  • @dolls.ahya3
    @dolls.ahya3 2 роки тому

    how we can get device token

  • @noijw
    @noijw 2 роки тому

    Thank you a lot lot lot

  • @krishanumandal3767
    @krishanumandal3767 2 роки тому

    Great

  • @user-ec4cy2gu6c
    @user-ec4cy2gu6c Рік тому

    can someone share the Api please ... i couldnt find any free api

  • @programmingwithnit5308
    @programmingwithnit5308 Рік тому

    Thank you

  • @md.marufurrahmanremon3095
    @md.marufurrahmanremon3095 2 роки тому

    joss

  • @Maysfeak
    @Maysfeak Рік тому

    hello goods sir im stuck at 17:18 it says "Error: Objects are not valid as a React child (found: object with keys {register}). If you meant to render a collection of children, use an array instead." btw great video sir thank you for this

    • @user-tz9om8ye1t
      @user-tz9om8ye1t 5 місяців тому

      how did you solve this problem. Can you help me?

  • @yeremmisarmientoalonzo114
    @yeremmisarmientoalonzo114 2 роки тому

    Nice :)

  • @talhasiddiqui3326
    @talhasiddiqui3326 2 роки тому

    i dont have auth-token in my api what should i do?

  • @exevirus887
    @exevirus887 2 роки тому

    Bro, why u not using redux saga or redux thunk to build this auth with REST API ??

  • @djenebakabadiakite3591
    @djenebakabadiakite3591 2 роки тому

    Hello what' is the api rest used to the video

    • @codeforyou
      @codeforyou  2 роки тому

      Youcan check this video for REST API
      ua-cam.com/video/sVmJ8dGNekQ/v-deo.html

    • @djenebakabadiakite3591
      @djenebakabadiakite3591 2 роки тому

      @@codeforyou thank for you

  • @amaraparrot6025
    @amaraparrot6025 2 роки тому +1

    There are no api in your code source too bad ! How can I build my own api base url???

    • @codeforyou
      @codeforyou  2 роки тому

      You can check my this video to make a REST API

    • @amaraparrot6025
      @amaraparrot6025 2 роки тому

      @@codeforyou ok thank you

  • @rajchaudhary3452
    @rajchaudhary3452 Рік тому

    ReferenceError: Property 'axios' doesn't exist, js engine: hermes Facing this error

    • @abirami01saravanan44
      @abirami01saravanan44 Рік тому

      Check axios is installed or not in the dependencies, configure the settings followed by the documentation if it works let know others,it maybe help for others also
      Just try this☝️

  • @mdrabiulhasan8682
    @mdrabiulhasan8682 2 роки тому

    how can i download this source code

    • @codeforyou
      @codeforyou  2 роки тому

      Check the description link

  • @prashanna8784
    @prashanna8784 6 місяців тому

    why you are afraid to speak, its better to speak rather than playing bg music

  • @istandwithkhan7879
    @istandwithkhan7879 Рік тому

    please avoid using sound.
    transfer your thought in your own language

  • @lecongduong6056
    @lecongduong6056 2 роки тому

    great video, please do more content like this