How to extend auth controller in v4!?

How to setup jwt in httpOnly cookies in v4!!!