agentsclimarketplace

Flutter social auth

Skill Poorgramer-Zack/dart-expert-skills/skills/flutter-social-auth

A comprehensive library of modular Agent Skills for Flutter & Dart development

Install
npx -y skills add Poorgramer-Zack/dart-expert-skills --skill flutter-social-auth

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Social authentication and OAuth/SSO for Flutter supporting Google Sign-In, Apple Sign-In, Facebook Login, and LINE Login. Use when implementing social login, OAuth flows, sign-in with Google/Apple/Facebook/LINE, SSO integration, third-party authentication, platform credential configuration (SHA-1 fingerprint for Android, Service ID for Apple, App ID for Facebook, Channel ID for LINE), native auth flows, minimal viable examples, error handling patterns, or troubleshooting authentication failures, token handling, and sign-in errors (ApiException, PlatformException).

SKILL.md

3.1 KB, as published. Nobody here has run it

Flutter Social Authentication Guide

Goal

Implement secure, high-quality social authentication in Flutter applications across iOS, Android, and Web. This skill focuses on the most common identity providers (Google, Facebook, Apple) using best-practice plugins and native configuration strategies to ensure a seamless "Privacy-First" user experience.

Process

Phase 1: Provider Selection & Requirements

Identify the required social providers and gather necessary developer portal credentials.

  • Google: Google Cloud Console / Firebase Console (SHA-1 fingerprint required for Android).
  • Facebook: Meta for Developers (App ID, Client Token).
  • Apple: Apple Developer Program (Service ID, Team ID, Key ID).
  • LINE: LINE Developers Console (Channel ID).

Phase 2: Platform-Specific Configuration

Each provider requires specific configurations in AndroidManifest.xml, Info.plist, or web/index.html.

Phase 3: Implementation & State Management

Integrate the authentication flow with the app's state management (e.g., Riverpod 3.0 Notifiers).

  1. Initialize: Call the respective plugin init or configuration methods.
  2. Authenticate: Trigger the login flow and capture the AccessToken or IdToken.
  3. Handle Persistence: Store credentials securely using flutter_secure_storage.
  4. Error Handling: Implement retry logic and display user-friendly error messages (e.g., ApiException 10 for Google).

πŸ“š Documentation Library

Refer to these specialized resources for each identity provider:

Constraints

  • Native Overlays: Always call WidgetsFlutterBinding.ensureInitialized() before initializing auth plugins in main().
  • Security Awareness: NEVER store raw AccessTokens in SharedPreferences. Use Secure Storage (encrypted).
  • Privacy Compliance: Ensure Apple Sign-In is implemented if any other 3rd party social login is offered on iOS.
  • Error Resilience: Always handle the cancel state gracefully when a user closes the auth popup.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.