안드로이드 프로젝트 로그인 기능 - Repository

Android/Study

[Android] 로그인 기능 구현 (4) - Repository

object AuthRepository { suspend fun signIn(email: String, password: String): Result { return try { Firebase.auth.signInWithEmailAndPassword(email, password).await() Result.success(Unit) } catch (e: Exception) { e.printStackTrace() Result.failure(e) } } } 이번에는 AuthRepository 코드에서 설명하고자 한다. Firebase를 기반으로 로그인, 로그아웃, 회원가입 기능을 만들었기에 Firebase 인증(Authentication)과 관련된 기능을 처리하는 AuthRepository라는 싱글톤 객체를 ..

Tenacity_Dev
'안드로이드 프로젝트 로그인 기능 - Repository' 태그의 글 목록