파이어베이스 auth 에 구글 계정을 연동하고 등록.
Step.1 플러터 셋팅.
1-1. google_sign_in 설치 (이후 import)
출처: https://pub.dev/packages/google_sign_in
google_sign_in | Flutter package
Flutter plugin for Google Sign-In, a secure authentication system for signing in with a Google account.
pub.dev
1-2. firebase_auth / firebase_core 설치 (이후 import)
1-3. main() 수정. => await 이하는 옵션( auth 자체 게정을 사용하지 않으면 필요없슴)
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
// Ideal time to initialize
await FirebaseAuth.instance.useAuthEmulator('localhost', 9099);
//...
}
대신 아래코드로 대체:
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform,);
1-4. firebase CLI https://firebase.google.com/docs/cli (fiebase.json 생성)
flutterfire configure 프로젝트명 실행해야 options.dart 파일이 생성됨
Firebase CLI 참조 | Firebase Documentation
firebase.google.com
Step.2 Firebase console 셋팅.
2-1.


SHA-1 출시 디지털 지문생성 및 등록
출처: https://developers.google.com/android/guides/client-auth
클라이언트 인증 | Google Play services | Google for Developers
이 페이지는 Cloud Translation API를 통해 번역되었습니다. 클라이언트 인증 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. 특정 Google Play 서비스 (예: Google 로그
developers.google.com
Step.3 Flutter 코딩 셋팅.
3-1. 로그인 구현
출처: https://firebase.google.com/docs/auth/flutter/federated-auth
'firebase' 카테고리의 다른 글
| cloud function -1- 클라우드 펑션 활용 셋팅 절차입니다. 두가지가 있는데요. (0) | 2025.06.23 |
|---|---|
| firebase CRUD with flutter 파이어베스에 접근해서 추가,읽고,업데이트,삭제하는 방법입니다. (0) | 2025.06.21 |
| flutter + firebase [기본 셋팅절차] = firestore PROCESS SECOND. (0) | 2025.06.20 |
| keytool'해시키' 도구에 대해, 자바를 설치하면 포함되어 활용이 가능하다. (0) | 2025.06.20 |
| 카카오연동 + flutter + firebase (0) | 2025.06.19 |