app/auth/authorize_api_request.rb
def http_auth_header
      if headers['Authorization'].present?
        headers['Authorization'].split(' ').last
      else
        raise(ExceptionHandler::MissingToken, Message.missing_token)
      end
    end
# check for token in `Authorization` header
check for token in `Authorization` header
check for token in ` Authorization ` header
def http_auth_header
      if headers['Authorization'].present?
        headers['Authorization'].split(' ').last
      else
        raise(ExceptionHandler::MissingToken, Message.missing_token)
      end
    end
def http_auth_header if headers [ 'Authorization' ] . present? headers [ 'Authorization' ] . split ( ' ' ) . last else raise ( ExceptionHandler :: MissingToken , Message . missing_token ) end end
check for token in `Authorization` header
check for token in ` Authorization ` header