feat(api): expose response info in requests
This commit is contained in:
parent
48b69c88a9
commit
db1f469a4f
3 changed files with 20 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue