def handle_login(self, data):
    self.server.handle_authorization_code(AuthorizationCode(data['code'], data['state']))
def handle_login(self, data):
    self.server.handle_authorization_code(AuthorizationCode(data['code'], data['state']))