feat(api): expose response info in requests

This commit is contained in:
Cilly Leang 2026-02-16 17:32:39 +11:00
parent 48b69c88a9
commit db1f469a4f
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 20 additions and 5 deletions

View file

@ -30,14 +30,14 @@ class AuthRepository internal constructor(
): AuthResponse {
try {
if (fingerprint == null) {
fingerprint = api.getExperiments().fingerprint
fingerprint = api.getExperiments().body().fingerprint
}
val login = api.login(
email = email,
password = password,
fingerprint = fingerprint!!,
)
).body()
logger.i { "Login success $login" }
this.token = login.token