public function getByToken(int $id, string $token, int $type = self::TOKEN_TYPE_REMEMBER) : ?Authenticatable
    {
        return $type === self::TOKEN_TYPE_REMEMBER ?  $this->getByRememberToken($id, $token) : $this->getByApiToken($id, $token);
    }
public function getByToken(int $id, string $token, int $type = self::TOKEN_TYPE_REMEMBER) : ?Authenticatable
    {
        return $type === self::TOKEN_TYPE_REMEMBER ?  $this->getByRememberToken($id, $token) : $this->getByApiToken($id, $token);
    }
public function getByToken ( int $ id , string $ token , int $ type = self :: TOKEN_TYPE_REMEMBER ) : ? Authenticatable { return $ type === self :: TOKEN_TYPE_REMEMBER ? $ this -> getByRememberToken ( $ id , $ token ) : $ this -> getByApiToken ( $ id , $ token ) ; }
Retrieve a user by their unique identifier and token.

@param  int    $id
@param  string $token
@param  int $type
@return \Illuminate\Contracts\Auth\Authenticatable|\Illuminate\Database\Eloquent\Builder|User|null
Retrieve a user by their unique identifier and token .