async function get(userId, options) {
  const optionsWithDefault = { ...DEFAULT_OPTIONS, ...options };

  const sessions = await db.Session.findAll({
    attributes: FIELDS,
    limit: optionsWithDefault.take,
    offset: optionsWithDefault.skip,
    order: [[optionsWithDefault.order_by, optionsWithDefault.order_dir]],
    where: {
      revoked: false,
      user_id: userId,
    },
  });

  const sessionsPlain = sessions.map((s) => {
    const sessionPlain = s.get({ plain: true });
    sessionPlain.scope = sessionPlain.scope.split(',');
    return sessionPlain;
  });

  return sessionsPlain;
}
@description Get all sessions.
@param {string} userId - Id of the user.
@param {object} [options] - Options of the request.
@returns {Promise} Resolve with list of sessions.
@example
session.get('70edd65d-2bde-4f54-885b-84e9330db346');