old_contents: from flask import Flask, Response
  from twilio.jwt.client import ClientCapabilityToken
  
  app = Flask(__name__)
  
  
  @app.route('/token', methods=['GET'])
  def get_capability_token():
      """Respond to incoming requests."""
  
      # Find these values at twilio.com/console
      account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
      auth_token = 'your_auth_token'
  
      capability = ClientCapabilityToken(account_sid, auth_token)
  
      capability.allow_client_incoming("jenny")
      token = capability.generate()
  
      return Response(token, mimetype='application/jwt')
  
  
  if __name__ == "__main__":
      app.run(debug=True)
  
new_contents: from flask import Flask, Response
  from twilio.jwt.client import ClientCapabilityToken
  
  app = Flask(__name__)
  
  
  @app.route('/token', methods=['GET'])
  def get_capability_token():
      """Respond to incoming requests."""
  
      # Find these values at twilio.com/console
      account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
      auth_token = 'your_auth_token'
  
      capability = ClientCapabilityToken(account_sid, auth_token)
  
      capability.allow_client_incoming("jenny")
      token = capability.to_jwt()
  
      return Response(token, mimetype='application/jwt')
  
  
  if __name__ == "__main__":
      app.run(debug=True)
  
subject: Update capability token creation method