Fixed an issue with customSecret not being set correctly