A step-by-step walkthrough of implementing login and registration in a NativePHP mobile application using two approaches: email/password and Google OAuth via Laravel Socialite. The setup involves two separate repositories — a NativePHP Livewire frontend and a Laravel API backend. Token management is handled via PHP session (free but less secure) or the paid NativePHP Mobile Secure Storage plugin. The middleware validates tokens every 15 minutes and allows up to 24 hours offline. Google sign-in uses deep links to handle the OAuth callback from the browser back into the mobile app.

14m watch time

Sort: