Secret Manager Access (Re: Button Problems)

Ok, so I tested a bit more and the problem that I am having is that MY CODE DOESN’T WORK ON THE SITE! So how this works, is I have a one-time access code to download media. So when I enter the code on preview mode, it deletes the code from Secret Manager. If I do this on the live site, it does not delete the code. How do I change the permissions for this? Please can I have help?

Note: To create and manage secrets with the Secrets API, you must add a Members Area to your site.
https://www.wix.com/velo/reference/wix-secrets-backend/introduction

P.S.
You should consider using a database collection with an encrypted field. Maybe it’ll better fit to your scenario.

Yes, but how do I let any not signed in user access secret codes thru my buttons?

I added member’s area.