Skip to content

Commit

Permalink
Merge pull request #31 from ryannjohnson/authenticatable-5.2
Browse files Browse the repository at this point in the history
Conform to 5.2's Authenticatable contract
  • Loading branch information
glena committed Jan 28, 2016
2 parents 0af65fe + 66faeaa commit 69fc706
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Auth0/Login/Auth0JWTUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ class Auth0JWTUser implements \Illuminate\Contracts\Auth\Authenticatable {
function __construct ($userInfo) {
$this->userInfo = get_object_vars($userInfo);
}

/**
* Get the unique identifier for the user.
*
* @return mixed
*/
public function getAuthIdentifierName() {
return $this->userInfo['sub'];
}

/**
* Get the unique identifier for the user.
*
Expand Down

0 comments on commit 69fc706

Please sign in to comment.