Introducing Magic Social Auth 1.0.2
Social sign-in through a single facade.
Native Google sign-in on iOS and Android, native Apple on iOS, and a backend-hosted browser flow for GitHub, Microsoft and the rest, on iOS, Android and web. Ready-made SocialAuthButtons included.
One facade. Four providers.
Google, Apple, GitHub and Microsoft on iOS, Android and web, behind a single SocialAuth facade. It is the client of the magic-starter-laravel social login, so that backend is required.
-
One facade API
Learn more about One facade APISocialAuth.driver(name).signIn()signs in,SocialAuth.supports(name)checks a provider andSocialAuth.signOut()signs out. Laravel Socialite users will know the shape. -
Native sheets
Google is native on iOS and Android through
Learn more about Native sheetsgoogle_sign_in, Apple on iOS throughsign_in_with_apple. Apple on Android and web uses the browser flow. -
Browser flow with PKCE
GitHub and Microsoft use it on every platform, and Google on web. The backend hosts it; on web a popup page (
Learn more about Browser flow with PKCEauth.html) posts the result back. -
Connect and confirm
For accounts a signed-in user links, the driver contract offers
Learn more about Connect and confirmbeginConnect,connectandconfirm. -
Setup by command line
Learn more about Setup by command linesocial:installdoes the native setup andsocial:doctorchecks it and prints the backend.envlines. -
Custom drivers
Register your own with
Learn more about Custom driversSocialAuth.manager.extend(name, factory); a driver implements theSocialDrivercontract.
Add it in seconds
Or add to pubspec.yaml:
dependencies:
magic_social_auth: ^1.0.2
Or give your AI agent this prompt: