Optimize config validation.
Implement base grant flow middleware.
Update readme.