-
-
Save skiph/c2bb7d0114b3aa4a2e98b60fff1b22a4 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
public void notifyUserAgentResponse(Intent data, int returnCode) { | |
if (returnCode != app.RC_AUTH) { | |
failLogin(new AuthException("User authorization was cancelled")); | |
return; | |
} | |
AuthorizationResponse resp = AuthorizationResponse.fromIntent(data); | |
AuthorizationException ex = AuthorizationException.fromIntent(data); | |
if (resp == null) { | |
failLogin(new AuthException("User authorization failed")); | |
return; | |
} else { | |
authState.update(resp, ex); | |
finishUserAuth(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment