Hi Dhanya,
Thanks for reporting this bug. I was able to reproduce it , and raised this [ticket](https://github.com/GluuFederation/oxAuth/issues/1312). The fix will be available in 4.1.1 build which is expected to release in couple weeks.
Thanks
Sahil