Hi @Khushal Singh · Thanks for the update.
I checked on this. There is no option in B2C to remove # from the authorization code. As of now, you should continue using the fix applied in your code.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.