Skip to content

Commit

Permalink
added toString method to users
Browse files Browse the repository at this point in the history
  • Loading branch information
glena committed Sep 15, 2016
1 parent 3bf1b17 commit 74d2dce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Auth0/Login/Auth0JWTUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,8 @@ public function getUserInfo() {
return $this->userInfo;
}

public function __toString() {
return json_encode($this->userInfo);
}

}
1 change: 1 addition & 0 deletions src/Auth0/Login/Auth0Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public function decodeJWT($encUser)
]);

$this->apiuser = $verifier->verifyAndDecode($encUser);

return $this->apiuser;
}

Expand Down
4 changes: 4 additions & 0 deletions src/Auth0/Login/Auth0User.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,8 @@ public function getUserInfo() {
return $this->userInfo;
}

public function __toString() {
return json_encode($this->userInfo);
}

}

0 comments on commit 74d2dce

Please sign in to comment.