Fix the following issue - "otpExpiryInMillis" is an instance variable and hence if the TTL is set, then the value remains for all the subsequent otp: verbs instead of the default expiry value.
- How I did it
Add "_defaultOtpExpiryInMills" and mark it as final to ensure its value is not changed.
Add the following logic - If TTL value is set, then set "otpExpiryInMills" to the value of TTL, else set to "_defaultOtpExpiryInMills".
- How to verify it
Added a unit test to ensure the default expiry of the OTP value not changed for the subsequent requests of the OTP.
- What I did
- How I did it
- How to verify it