So I tried to write a decorator function to secure the access to a function with a "password string" auth. The decorator function looks like this:
auth