Use node-scheduler to implement account locking for specific amount of time, for few areas like restrict user to perform any action on the application for 1 day or 2 days... based on the situation.
@prudhvir3ddy we are creating cert's size as 2048
the problem here is when we create the jwt, it's size is huge. Shall we decrease the cert size to 1024 or 512