Android Apple 로그인을 Firebase 웹 흐름으로

This commit is contained in:
Sn-Kinos
2026-10-08 15:44:49 +09:00
parent 586039da0a
commit 0b95454b28
4 changed files with 19 additions and 40 deletions
+10 -3
View File
@@ -125,9 +125,16 @@ class AuthRepository extends ChangeNotifier {
/// 돌려준다.
static List<SocialAuthProvider> _defaultProviders() => [
const GoogleSignInProvider(),
AppleSignInProvider(
webAuthenticationOptions: appleWebAuthenticationOptionsFromEnvironment(),
),
// Android 는 Apple SDK 가 없어 Firebase 웹 흐름(`apple.com` 제공자)으로 간다 —
// 서비스 ID · 키는 Firebase 콘솔 Apple 제공자 설정에 두고 앱에는 값이 없다.
if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android)
const OidcSignInProvider(
AuthProviderKind.apple,
providerId: 'apple.com',
scopes: ['email', 'name'],
)
else
const AppleSignInProvider(),
// 동의 항목은 카카오 콘솔 설정을 따른다(지금은 닉네임). 이메일(account_email)은 비즈 앱
// 전환 후 콘솔에서 켜면 서버가 동의·인증된 값만 받는다.
KakaoSignInProvider(),