A post was merged into an existing topic: Getting 401 Unauthorised & Better way of solving the given problem statement