SHARE
TWEET

Untitled

a guest Sep 10th, 2019 197 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top