Social Auth
Ikromjon Ochilov
NativePHP^3.0iOS18.0+Android29+PHP8.3+Laravel11, 12, or 13
Native Apple Sign-In and Google Sign-In for NativePHP mobile apps. Uses native platform SDKs — not browser-based redirects — for a seamless sign-in experience.
Features
- Native Apple Sign-In with biometric authentication (iOS only)
- Native Google Sign-In (iOS & Android)
- JWT identity token verification
- User information retrieval (name, email, profile photo)
- Nonce/state support for replay protection
- Credential state validation (Apple)
- Livewire and JavaScript event listeners
Installation
composer require ikromjon/nativephp-mobile-social-auth
php artisan native:install --force
Compatibility
| Platform | Requirement |
|---|---|
| NativePHP | ^3.0 |
| iOS | 18.0+ |
| Android | API 29+ |
| PHP | 8.3+ |
| Laravel | 11, 12, or 13 |
Events
AppleSignInCompleted— Apple Sign-In succeeded (iOS only)GoogleSignInCompleted— Google Sign-In succeededSignInFailed— authentication failed