Have you binded the secret to the function? If you have, you can share the part of the code where you initialized the secret?