[auth] split header and cookie writer into 2 functions
[auth] split header and cookie writer into 2 functions

ouistiti-project/ouistiti,ouistiti-project/ouistiti,ouistiti-project/ouistiti,ouistiti-project/ouistiti,ouistiti-project/ouistiti,ouistiti-project/ouistiti