Advertisement
Guest User

Untitled

a guest
Sep 10th, 2019
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. fun performLogin(username: String, password: String) {
  2. repository
  3. .getNonce()
  4. .flatMap { nonce -> repository.getDeviceAttestation(nonce) }
  5. .flatMap { attestation -> repository.login(username, password, attestation) }
  6. .subscribe({
  7. loginResponse -> handleLoginSuccess(loginResponse)
  8. }, {
  9. error -> handleLoginFailure(error)
  10. })
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement