yii\web\IdentityInterface::findIdentityByAccessToken PHP 메소드

findIdentityByAccessToken() 공개 정적인 메소드

Finds an identity by the given token.
public static findIdentityByAccessToken ( mixed $token, mixed $type = null ) : yii\web\IdentityInterface
$token mixed the token to be looked for
$type mixed the type of the token. The value of this parameter depends on the implementation. For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`.
리턴 yii\web\IdentityInterface the identity object that matches the given token. Null should be returned if such an identity cannot be found or the identity is not in an active state (disabled, deleted, etc.)
    public static function findIdentityByAccessToken($token, $type = null);