class Restforce::Middleware::Authentication

def call(env)

can reissue the request.
Rescue from 401's, authenticate then raise the error again so the client
def call(env)
  @app.call(env)
rescue Restforce::UnauthorizedError
  authenticate!
  raise
end