mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
Coverted tabs to spaces
This commit is contained in:
parent
cff3817865
commit
6d7aa9726d
@ -4,23 +4,23 @@ namespace LNCD\OAuth2server;
|
|||||||
|
|
||||||
class AccessToken
|
class AccessToken
|
||||||
{
|
{
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get(int $sessionId)
|
public function get(int $sessionId)
|
||||||
{
|
{
|
||||||
// returns an access token that the user may already have (else generate a new one)
|
// returns an access token that the user may already have (else generate a new one)
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validate(string $accessToken, array $scopes)
|
public function validate(string $accessToken, array $scopes)
|
||||||
{
|
{
|
||||||
// tests if an access token is valid
|
// tests if an access token is valid
|
||||||
}
|
}
|
||||||
|
|
||||||
private function set(int $sessionId)
|
private function set(int $sessionId)
|
||||||
{
|
{
|
||||||
// generate a new access token
|
// generate a new access token
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user