플러터 : 3.19.5
앱ID : 1041356
version : supabase_flutter: ^2.3.4
소셜로그인 중 해당 카카오톡 로그인시, uuid값이 null이 발생합니다.
확인해보니, 로그인 완료 후 uuid를 return하도록 구현했는데, 그냥 넘어가버리네요.
해결할 방법이 있을까요?
(구글, 애플, 페이스북은 uuid가 정삭적으로 출력됩니다)
abstract class LoginManagerInterface<T> {
Future<String> signInEachProvider();
Future<void> login() async {
try {
final uuid = await signInEachProvider();
Log.d(uuid); // await하지 않고 null을 출력합니다
} catch (e, s) {
handleException(e, s);
}
}
Future<void> logout();
}
class KakaoLoginManager extends LoginManagerInterface {
@override
signInEachProvider() async {
final result = await sbAuth.signInWithOAuth(
OAuthProvider.kakao,
);
Log.d(sbAuth.currentUser.toString());
return sbAuth.currentUser!.id;
}
@override
logout() async {
await sbAuth.signOut();
}
}
아래는 doctor 결과입니다.
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4 23E214 darwin-arm64, locale ko-KR)
• Flutter version 3.19.5 on channel stable at /Users/gunwoo/Downloads/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 300451adae (2주 전), 2024-03-27 21:54:07 -0500
• Engine revision e76c956498
• Dart version 3.3.3
• DevTools version 2.31.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/gunwoo/Library/Android/sdk
• Platform android-34-ext8, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C65
• CocoaPods version 1.14.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
[✓] VS Code (version 1.79.2)
• VS Code at /Users/gunwoo/Downloads/Visual Studio Code.app/Contents
• Flutter extension version 3.86.0
[✓] Connected device (4 available)
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 14 (API 34) (emulator)
• iPhone 15 Pro Max (mobile) • A04180FE-67FE-4AE0-8B75-6D15686E5655 • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.4 23E214 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 123.0.6312.123
[✓] Network resources
• All expected network resources are available.