k_auth 0.4.0
k_auth: ^0.4.0 copied to clipboard
Social login SDK for Korean apps. Unified API for Kakao, Naver, Google, and Apple login. Standardized user info, Korean error messages, and official design guideline buttons.
Changelog #
All notable changes to this project will be documented in this file.
0.4.0 2024-12 #
Changed #
- API:
signOut(),unlink()반환 타입을Future<AuthResult>로 변경 (Result 패턴 통일) - API:
signOutAll()반환 타입을Future<List<AuthResult>>로 변경 - Error: 에러 메시지 kDebugMode 분기 (개발: 상세, 릴리즈: 간결)
- Error:
tokenRefreshFailed→refreshFailed로 간결화
Added #
- Error:
signOutFailed,unlinkFailed,refreshFailed에러 코드 추가
Fixed #
- API:
isConfigured()초기화 전에도 동작하도록 수정 - API:
refreshToken()기본 provider를 configuredProviders에서 선택 - UI:
.withOpacity()deprecated API를.withValues(alpha:)로 수정 - Error: Apple
unlink()명확한 에러 메시지 및 문서 링크 추가
0.3.2 2024-12 #
Added #
- Documentation: Comprehensive setup guides for all providers
- Documentation: Detailed platform configuration (iOS/Android)
- Documentation: Advanced usage examples (auto-login, backend integration)
- Documentation: Full app example (main, login, home screens)
- Documentation: Troubleshooting section with common errors
0.3.0 2024-12 #
Changed #
- Dependencies: Updated all dependencies to latest versions
kakao_flutter_sdk: ^1.10.0flutter_naver_login: ^2.1.0google_sign_in: ^7.2.0sign_in_with_apple: ^7.0.0flutter_svg: ^2.2.0
- pub.dev: Improved package score (English description, code formatting)
0.2.0 2024-12 #
Added #
- Functional API:
fold,when,onSuccess,onFailure,mapUser,mapUserOr - State Management:
authStateChangesStream,currentUser,currentProvider,isSignedIn - Auto Login:
KAuthSessionStorageinterface,initialize(autoRestore: true) - Backend Integration:
onSignIn,onSignOutcallbacks,serverToken - Token Refresh:
refreshToken(),isExpired,isExpiringSoon() - Diagnostics:
KAuthDiagnostic.run()for native configuration validation - Debug Logging:
KAuthLogger - SVG Icons: Kakao, Naver, Google logos
Changed #
signOut()provider argument now optional (uses current provider)AuthResultnow supports JSON serialization
Removed (Breaking) #
AuthResult.userId,email,name,profileImageUrl- useuser.*instead- Deprecated APIs (
collectPhone,withScopes(), etc.)
0.1.0 2024-11 #
Added #
- Unified OAuth API for Kakao, Naver, Google, Apple
KAuthUserstandardized user model- Korean error messages with hints
- Login button UI components
0.0.1 2024-11 #
- Initial release