As title is suggesting, I am interested in general opinion on where is the best to put all security related code(like code for JWT, standard authentication, etc.)
I am thinking about it quite a while and I do not have a clue what should be suitable place for this.
Does somebody has any experience with this. What is for you correct place for this, according to DDD?