      include: [User],
      where: { '$user.id$': userId },
    });

    if (tokenData) {
      tokenData.refreshToken = refreshToken;
      return tokenData.save();
    }

    const user = await this.usersService.findOneById(userId);