React Native Axios, AsyncStorage and JSON Web Token (JWT) for Login Authentication
HTML-код
- Опубликовано: 2 окт 2024
- Login using JSON Web Token or JWT and then we save token into AsyncStorage. So after user login, user don't need to input email and password anymore. It will auto navigate to another screens.
If you have any question, feel free to ask me on :
- Instagram : charismaaji
- Email : charismakurniawan@gmail.com
Thank you!
#reactnative #reactjs #javascript #jsonwebtoken #jwt #asyncstorage
Great tutorial, man. No need to be sorry about your English tho! Pretty spot on on the explanation! Thanks for the help!
source code
indonesian accent wkwkw
I'm not sure if you are saving the JWT in async storage, due to this being a tutorial or if this is meant for production. I think it's important that you explain, to those who might not now, that this is not a preffered way to store tokens, even says on various libraries. Async Storage is not meant for confidential information...
Yes you're right. You can put token using react-native-keychain
Great Tutorial, but can you please provide guideline about refresh token?
ok
goodjob bro nice tuto, please try to be more loud and clear and enthusiastic in ur videos :)
In my case navigation is not happening,i even tried navigation.navigate still no response and no error msg on console, could you please help
@pankuri Gandhi, you may forget to pass navigation as props or you can import useNavigation method and create object of it
bang minimal tambahin cara manggil JSON di postmannya itu gimana walau cuma 1-2 menit, ini bingung juga soalnya pas ngelihat tutornya, react nativenya paham, tapi database managementnya ini bingung
Good video, would be nice to do a refresh token flow when access token expires and you have to refresh again to maintain session
Great tutorial!!! I was practicing with a sign up page I designed previously. For some reason though I'm getting an error in the user api when returning my error.res.data saying undefined is not an object, but I handle the error in the login screen. Any thoughts? I've looked all over found nothing.
I’m also using expo
you can try to console one by one from error, then see what the response
@@charismaaji I’ve tried that and it says unreachable variable at error which points to a call from metros source so is it because I’m using expo?
@@junky3445 I think it doesn't matter if you are using expo or CLI, need to know what kind of error
@@charismaaji Alright. Thanks so much keep making great videos!
thank bro, very useful
Please sir one video apidata translate in React native diff language
What about refresh token?
Soon on the next video
Very good stuff. Helped a lot, thank you :)
Great tutorial! Thanks 🙏🏼
This is great
link github??
there is an option use Keycloak in react native? or it is enough to use Keycloak api in order to login?
Nice one.
Very clearly...thanks
Thanks
Keren bang,,, izin belajar dari video ini ya
thanks for this,
we should use post method but why you used create method in axios
You can see on 3:25 I'm using method "POST" for connect to API
Thank you from Bangladesh
Thanks man, alot! Where did you use the "jwt-decode": "^3.1.2" though?
Thanks
Thanks
Where is your charisma then.
My name is Charisma, doesn't mean need "charisma" for coding
it would be really great if you could publish a github repo :(
Yang di tunggu JWT nya 😢, kenapa yang dijelaskan malah form loginnya.😭
Thank you mate, you save my time.
Can you please upload a video with Azure SSO authentication, thanks
A good tutorial. Really helped me