bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

How to get user_id from oauth_access_tokens ? #978

Closed josematheus10 closed 4 years ago

josematheus10 commented 4 years ago

How do I get the user_id saved in the oauth_access_tokens table?

josematheus10 commented 4 years ago

public function UserInfo(){ $token = $this->server->getAccessTokenData($this->request, $this->response); return $token; }