Skip to content

Commit

Permalink
Use json instead of string in assignResponses on Android (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
webflo authored Aug 8, 2021
1 parent cb2b5f1 commit eea76ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ public abstract class OAuth2Utils {
public static void assignResponses(JSObject resp, String accessToken, AuthorizationResponse authorizationResponse, TokenResponse accessTokenResponse) {
// #154
if (authorizationResponse != null) {
resp.put("authorization_response", authorizationResponse.jsonSerializeString());
resp.put("authorization_response", authorizationResponse.jsonSerialize());
}
if (accessTokenResponse != null) {
resp.put("access_token_response", accessTokenResponse.jsonSerializeString());
resp.put("access_token_response", accessTokenResponse.jsonSerialize());
}
if (accessToken != null) {
resp.put("access_token", accessToken);
Expand Down

0 comments on commit eea76ab

Please sign in to comment.