End user authentication using JWT throws 401 unauthorized for few attempts before being successful

Reference resources