Exception handling
When we called the method getIdToken and pass invalid parameters especially "clientSecret", throws NullPointerException for resolving this issue was added logic that checks, that if the response status is not 200 then returned AppException.