public static function findIdentityByAccessToken($token, $type = null)
    {
        $self = static::buildNoInitModel();
        return static::findOne([$self->accessTokenAttribute => $token]);
    }
public static function findIdentityByAccessToken($token, $type = null)
    {
        $self = static::buildNoInitModel();
        return static::findOne([$self->accessTokenAttribute => $token]);
    }
public static function findIdentityByAccessToken ( $ token , $ type = null ) { $ self = static :: buildNoInitModel ( ) ; return static :: findOne ( [ $ self -> accessTokenAttribute => $ token ] ) ; }
Finds an identity by the given token.
@param string $token
@param mixed $type
@return static
Finds an identity by the given token .