Skip to content

Commit

Permalink
fix: use correct model dump method in tutorial (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun authored Aug 17, 2023
1 parent 67b865b commit a58a8dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ Route::get('/', function () {

return (
// Get local ID token claims
$client->getIdTokenClaims()->modelDumpJson(excludeUnset: true)
json_decode($client->getIdTokenClaims())
. "<br>"
// Fetch user info from Logto userinfo endpoint
$client->fetchUserInfo()->modelDumpJson(excludeUnset: true)
json_decode($client->fetchUserInfo())
. "<br><a href='/sign-out'>Sign out</a>"
);
});
Expand Down

0 comments on commit a58a8dc

Please sign in to comment.