Skip to content

Commit

Permalink
Merge pull request #58 from lootmarket/jwtaccessor
Browse files Browse the repository at this point in the history
Adding accessor to retrieve JWT from Auth0Service
  • Loading branch information
glena authored Dec 2, 2016
2 parents 4f81e5c + e24b8d5 commit 46d2990
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/Auth0/Login/Auth0Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,16 @@ public function decodeJWT($encUser)
return $this->apiuser;
}

/**
* @return mixed
*/
public function getIdToken()
{
return $this->getSDK()->getIdToken();
}

public function getAccessToken()
{
return $this->getSDK()->getAccessToken();
}

public function jwtuser()
{
return $this->apiuser;
Expand Down

0 comments on commit 46d2990

Please sign in to comment.