Laravel Sanctum/Airlock Mobile Auth w/ React Native

Опубликовано: 06 Март 2020
на канале: Andre Madarang
20,771
331

Airlock has been renamed to Sanctum: https://blog.laravel.com/airlock-rena...

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:    • Laravel Sanctum/Airlock with Vue for ...  
Ben Awad's Video on React Navigation:    • React Navigation v5 Tutorial  

GitHub Repo Mobile App: https://github.com/drehimself/rn-airl...
GitHub Repo Backend: https://github.com/drehimself/airlock...

LINKS
My courses: https://codewithdre.com
Sign up for my newsletter: http://andremadarang.com/newsletter
My website: http://andremadarang.com
Twitter:   / drehimself  
GitHub: http://github.com/drehimself
CodePen: http://codepen.io/drehimself