kamermans / guzzle-oauth2-subscriber

OAuth 2.0 Client for Guzzle 4, 5, 6 and 7 with PHP 5.4 - PHP 8.0 - no more dependency hell!
MIT License
140 stars 31 forks source link

Get Token Payload #54

Closed mahdimsr closed 1 year ago

mahdimsr commented 1 year ago

Hi, I`m using this package and it is working perfectly, in some situations I need to get some information from a token of OAuth2. so these questions come next:

  1. How could I access the token of request?
  2. I want the token payload. is there any way to get it?
mahdimsr commented 1 year ago

Sorry, I find out the solution. here it is:

$oauth = new OAuth2Middleware($grant_type); $oauth->getAccessToken();