Laravel Sanctum/Airlock Mobile Auth w/ React Native

Airlock has been 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:
Ben Awad’s Video on React Navigation:

GitHub Repo Mobile App:
GitHub Repo Backend:

My courses:
Sign up for my newsletter:
My website:



Build A Site Info