feat(auth): delegate changePassword in FirebaseAuthRepositoryImpl

This commit is contained in:
null 2026-07-01 02:19:11 -05:00
parent 54608796e1
commit 7fe095ef3b
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ class FirebaseAuthRepositoryImpl @Inject constructor(
runCatching { dataSource.sendPasswordResetEmail(email) } runCatching { dataSource.sendPasswordResetEmail(email) }
} }
// No app-level rate limit: the data source re-authenticates against Firebase, whose own server-side
// throttling (surfaced as ChangePasswordException.TooManyAttempts) is the authoritative brute-force
// guard for the current-password check.
override suspend fun changePassword(currentPassword: String, newPassword: String): Result<Unit> =
runCatching { dataSource.changePassword(currentPassword, newPassword) }
override suspend fun signOut() = dataSource.signOut() override suspend fun signOut() = dataSource.signOut()
override suspend fun reauthenticateWithEmail(email: String, password: String): Result<Unit> = override suspend fun reauthenticateWithEmail(email: String, password: String): Result<Unit> =