text: // Выдаем данные клиента
  const passport = require('passport');
  
  module.exports.info = [
    passport.authenticate('bearer', { session: false }),
    (request, response) => {
      // request.authInfo is set using the `info` argument supplied by
      // `BearerStrategy`. It is typically used to indicate scope of the token,
      // and used in access control checks. For illustrative purposes, this
      // example simply returns the scope in the response.
      response.json({
        client_id: request.user._id,
        name: request.user.name,
        scope: request.authInfo.scope,
      });
    },
  ];
  