I've written two programs using some of the basic framework and just changing the program name (and programming of course). Each program will ask for access to "documents" folder, which is fine and I permit it.
If I then run the other program it will ask for its document folder permission, which also is fine. However if I run the first program again, having run the second program it asks for document folder permission again.
What are the parameters macOS uses to determine something has changed? I'm running the latest Catalina. It seems as if there are similarities between the programs that makes it think the program has changed, rather than its being a different program.