mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Add tests for the legacy tokens, fix some tests cases [skip ci]
This commit is contained in:
		| @@ -35,9 +35,9 @@ class TokensFactory { | ||||
|     public static function createForOAuthClient(AccessTokenEntityInterface $accessToken): Token { | ||||
|         $payloads = [ | ||||
|             'aud' => self::buildAud($accessToken->getClient()->getIdentifier()), | ||||
|             'ely-scopes' => array_map(static function(ScopeEntityInterface $scope): string { | ||||
|             'ely-scopes' => implode(',', array_map(static function(ScopeEntityInterface $scope): string { | ||||
|                 return $scope->getIdentifier(); | ||||
|             }, $accessToken->getScopes()), | ||||
|             }, $accessToken->getScopes())), | ||||
|             'exp' => $accessToken->getExpiryDateTime()->getTimestamp(), | ||||
|         ]; | ||||
|         if ($accessToken->getUserIdentifier() !== null) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user