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
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?
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).
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?
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.
You are probably importing the AuthContext without curly braces. USE THIS ----> import { AuthContext } from '../contexts/AuthContext' NOT THIS ---> import AuthContext from '../contexts/AuthContext'
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? 😊
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 ?
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.
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';
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.
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
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
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☝️
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
I will create tutorial with voice ☺️
great video, simple and clean, would be nice if you would talk and explain what are you doing while writing code
Thank you ☺️
@@codeforyou I'm not native speaker of english so I sorry to my english but where come from acces_token
simple, methodical, clear, it's all here
thank you
You're welcome! 😄
Great video for a beginner....helped me a lot❤❤
Glad to hear 🤗
eh mec tu es trop fort continue comme ça l'ami
great video, please do more content like this
Thank you 💕
Please stay with me by subscribing channel.
Hi i follow the tutorial but after login page not redirect to the Home Screen.
Excellent video. Thanks for taking the time
You are welcome 🤗
This helped me a great deal. Thanks so much!!!
You are welcome ☺️
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?
i am getting render error
RNSScreenStackHeaderConfig was not found in UIManager
thank you for the tutorial it is really help me doing my job.,
You are welcome ☺️
Hello, thank's for this insane video, I have just a question, how did you redirect to HomeScreen after logged it ? Thanks a lot
Glad to hear 🤗
Thank you so much for this tutorial
You are welcome 🤗
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).
How can I refresh my access token automatically when it expires? I used your code ;( but Im struggling with this problem
Thank youu . You save me 😊
You are welcome 🤗
Thanks so much for this work
You are welcome 🤗
Nice video, do you also have complete crud operations with REST API video? That would be great.
Thank you 😊
Please check my another video ☺️
TypeError: undefined is not an object (evaluating '_useContext.login'). This error has troubled me a lot, any ideas guys??? thanks
found it after 3 hours, i havent imported and used the component to the higher level of the application.
Sir, i have a nested drawer and a stack navigator , how do i implement this splash screen there.
Good demo
sir, i have problem. undefined is not a function.
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?
Please check the instructions carefully, hopefully you be able to make if perfect.
same as error also me
Were you able to resolve that?
same as error also me. Did you fix it?
just uncomment/remove the ones with 'val' since you probably used it with useContext
Best Video , Thanks for Posting How ever I'm facing issues on Parameters . it says "message": "invalid parameters", "success": false
hello there, how did you get the lumen dashboard
why you don't use react navigation?
Hello, how i can passed Data the LoginScreen to HomeScreen
Thank you for the video. SOme good stuff here. Please add the link to the video that you used to create the APIs. Thanks🥺
You are awesome 👍
What software did you use to create the rest api? (HRMS Mean?)
If i used Django rest framework and i returned jwt value ?
Hi can anyone help i am getting this issue
TypeError: undefined is not an object (evaluating '_useContext.isLoading')
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.
I have the same error
did you manage to solve it?
help, i have the same error
You are probably importing the AuthContext without curly braces.
USE THIS ----> import { AuthContext } from '../contexts/AuthContext'
NOT THIS ---> import AuthContext from '../contexts/AuthContext'
someone solve this ? I imported it correctly... with {} I mean
From where does the token comes from ? Is it from jwt?
pls, how can we get the lumen dashboard
Request failed with status code 422???? how to fix
Thanks a lot💕
You are welcome ☺️
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? 😊
You probably forgot to uncomment/remove the 'const val = useContext..' just remove all of these and it should work fine!
@@fiecl4383 not working. mb something with the compiler? :(
@@a1ero Make the app.js inside the provider
@@loganathan2010 ty, i've already figured it out :)
@@a1ero what changes did you do?
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 ?
You have to work with the backend to accept unique names
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.
thank you so much❤
You are welcome ☺️
Merci ❤
Thanks 👍
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';
add react native snippets in VS code extension
More tutorial like a real project for react native pls 🙏
Will do ☺️
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.
return
{children}
;
Hello sir how to find own Android react native app baseURL
Base Url is your api endpoint url.
where can i get BASE URL
login error AxiosError: Network Error
register error AxiosError: Network Error
WHY ?????
nice video
Thank you 😊
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
Please follow the instruction carefully, hopefully you will be able to solve it.
how we can get device token
Thank you a lot lot lot
You are welcome ☺️
Great
Thank you ☺️
can someone share the Api please ... i couldnt find any free api
Thank you
You are welcome 🤗
joss
Thanks 🙏
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
how did you solve this problem. Can you help me?
Nice :)
Thank you ☺️
i dont have auth-token in my api what should i do?
Jwt Async
@@kewlkeat please elaborate
Bro, why u not using redux saga or redux thunk to build this auth with REST API ??
To make it simple.
@@codeforyou ok bro
Hello what' is the api rest used to the video
Youcan check this video for REST API
ua-cam.com/video/sVmJ8dGNekQ/v-deo.html
@@codeforyou thank for you
There are no api in your code source too bad ! How can I build my own api base url???
You can check my this video to make a REST API
@@codeforyou ok thank you
ReferenceError: Property 'axios' doesn't exist, js engine: hermes Facing this error
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☝️
how can i download this source code
Check the description link
why you are afraid to speak, its better to speak rather than playing bg music
I will do soon ☺️
please avoid using sound.
transfer your thought in your own language
great video, please do more content like this
Thank you ☺️