-
-
Save skiph/0c5caab71a64728a846f2260ddafcc67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void startCodeExchange() { | |
Log.i(TAG, "Starting code exchange"); | |
loginListener.onEvent(AuthRepo.this, AUTH_CODE_EXCHANGE_START); | |
AuthorizationResponse resp = authState.getLastAuthorizationResponse(); | |
authService.performTokenRequest( | |
resp.createTokenExchangeRequest(), this::onTokenRequestCompleted); | |
} | |
private void onTokenRequestCompleted(TokenResponse resp, AuthorizationException ex) { | |
if (resp == null) { | |
failLogin(new AuthException(ex.getMessage())); | |
return; | |
} | |
authState.update(resp, ex); | |
finishCodeExchange(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment