Skip to content

Add Google Sign-In to AuthenticationΒ #1

@suleymansurucu

Description

@suleymansurucu

🎯 Goal:

Enable users to log in with their Google accounts using Firebase Authentication.

This feature improves user experience by allowing quick, password-free access, especially on mobile.


βœ… Tasks

  • πŸ”Œ Integrate google_sign_in package
    Add google_sign_in and firebase_auth to pubspec.yaml and install the dependencies.

  • πŸ”§ Configure Firebase project

    • Enable "Google" sign-in method in Firebase Console
    • Add Android SHA-1 fingerprint in project settings (for mobile support)
  • 🧩 Update AuthRepository
    Add signInWithGoogle() method that uses GoogleSignIn and FirebaseAuth.

  • βš™οΈ Update AuthBloc
    Add a new event: SignInWithGoogleRequested
    Handle it by calling the new repository method and emit states accordingly.

  • 🎯 Update SignInPage UI
    Add a Google Sign-In button
    On tap β†’ dispatch SignInWithGoogleRequested to AuthBloc

  • 🌍 Support iOS configuration if needed (GoogleService-Info.plist, reversed client ID, URL schemes)


πŸ“¦ Required Packages

firebase_auth: ^latest
google_sign_in: ^latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions