Update openapi.php

Add auto logout option after execute some function.

todo:
$config['auto_logout'] = true;