feat(auth): delegate changePassword in FirebaseAuthRepositoryImpl
This commit is contained in:
parent
54608796e1
commit
7fe095ef3b
|
|
@ -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> =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue