Uploaded November 2020 | Updated November 2026, 15 hours ago
Authenticating mobile apps can be tricky because you can't use the session based authentication that Laravel Sanctum offers. Instead, we need to use a token based authentication which is also offered by Laravel Sanctum. In this video, we authenticate a react native mobile app using the existing Laravel Fortify API's backend that we used to authenticate the SPA in this series with few modifications. This allows us to keep all of fortify's features & have the ability to authenticate both mobile apps & SPAs.
π€ You can support me by giving my videos a π & by subscribing to the channel βοΈ
---- Note ----
At 07:00 another way of deleting the correct token is by calling currentAccessToken() method on the user model & deleting that instead of deleting all user's tokens. More details here: laravel.com/docs/8.x/sanctum#revoking-tokens
---- Source Code ----
Back-End (Laravel): github.com/ggelashvili/laravel-fortify-spa-backend
Front-End (React Native): github.com/ggelashvili/laravel-fortify-mobile-app
--- Laravel Fortify Without Jetstream Series ---
Laravel Fortify Without Jetstream Feature - youtu.be/QYJKp1e71xs
Add Two-Factor Authentication Feature - youtu.be/EVWmma7nXak
Add User Registration Feature - youtu.be/Gt_6XFCLD5Y
Add Account Profile & Password Updates Feature - youtu.be/ELLDzzhIefA
Add Password Reset Feature - youtu.be/hbP-oodgixA
Authenticate Mobile App With Fortify & Sanctum - youtu.be/ymLpLWklzxQ
Updates to Laravel Fortify - youtu.be/2a2FFg40zFI
Authenticating mobile apps can be tricky because you can't use the session based authentication that Laravel Sanctum offers. Instead, we need to use a token based authentication which is also offered by Laravel Sanctum. In this video, we authenticate a react native mobile app using the existing Laravel Fortify API's backend that we used to authenticate the SPA in this series with few modifications. This allows us to keep all of fortify's features & have the ability to authenticate both mobile apps & SPAs.
π€ You can support me by giving my videos a π & by subscribing to the channel βοΈ
---- Note ----
At 07:00 another way of deleting the correct token is by calling currentAccessToken() method on the user model & deleting that instead of deleting all user's tokens. More details here: laravel.com/docs/8.x/sanctum#revoking-tokens
---- Source Code ----
Back-End (Laravel): github.com/ggelashvili/laravel-fortify-spa-backend
Front-End (React Native): github.com/ggelashvili/laravel-fortify-mobile-app
--- Laravel Fortify Without Jetstream Series ---
Laravel Fortify Without Jetstream Feature - youtu.be/QYJKp1e71xs
Add Two-Factor Authentication Feature - youtu.be/EVWmma7nXak
Add User Registration Feature - youtu.be/Gt_6XFCLD5Y
Add Account Profile & Password Updates Feature - youtu.be/ELLDzzhIefA
Add Password Reset Feature - youtu.be/hbP-oodgixA
Authenticate Mobile App With Fortify & Sanctum - youtu.be/ymLpLWklzxQ
Updates to Laravel Fortify - youtu.be/2a2FFg40zFI




