Laravel Sanctum/Airlock Mobile Auth w/ React Native
Airlock has been renamed to Sanctum: https://blog.laravel.com/airlock-renamed-to-sanctum
We take a look at using Laravel Airlock for Mobile Authentication. If you’ve used token-based Auth package in the past, Airlock works the same way. We hit an endpoint and receive a token that has to be stored locally on the device. For subsequent requests to protected routes, that token has to be passed as an Authorization header.
We make use of React Native and Expo for the demo. We hook up our mobile app to our backend Laravel app and implement logging in, logging out and validation.
Original Video: https://www.youtube.com/watch?v=D9oIu6jiYLk
Ben Awad’s Video on React Navigation: https://www.youtube.com/watch?v=Hln37dE19bs
GitHub Repo Mobile App: https://github.com/drehimself/rn-airlock-example
GitHub Repo Backend: https://github.com/drehimself/airlock-example
# LINKS
My courses: https://codewithdre.com
Sign up for my newsletter: http://andremadarang.com/newsletter
My website: http://andremadarang.com
Twitter: http://twitter.com/drehimself
GitHub: http://github.com/drehimself
CodePen: http://codepen.io/drehimself
source