Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun performLogin(username: String, password: String) {
- repository
- .getNonce()
- .flatMap { nonce -> repository.getDeviceAttestation(nonce) }
- .flatMap { attestation -> repository.login(username, password, attestation) }
- .subscribe({
- loginResponse -> handleLoginSuccess(loginResponse)
- }, {
- error -> handleLoginFailure(error)
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement