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.
GitHub Repo Mobile App: https://github.com/drehimself/rn-airlock-example
GitHub Repo Backend: https://github.com/drehimself/airlock-example
#laravel #reactnative #security #mobileapps #webdev