Skip to content

Commit

Permalink
Fix to return array regardless of auth level
Browse files Browse the repository at this point in the history
  • Loading branch information
ziming committed May 30, 2019
1 parent bee2c5f commit 18bc814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LaravelMyinfoSg.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ private function callPersonAPI($accessToken)
throw new InvalidDataOrSignatureForPersonDataException();
}

return response()->json([
return [
'data' => $decodedPersonData,
]);
];
}

}
Expand Down

0 comments on commit 18bc814

Please sign in to comment.