I tried making the changes but its still ignoring the if condition and giving me the else condition. Can you please check for once where exactly I am wrong please.
app is defined with what to do when certain requests are made
If I make a request, it does not matter when or how, the value of mySecret has been set in stone, because const mySecret = ... only runs once (on initial start-up). No matter how many times I make a request which causes the callback function to run in the route handler, the if condition will always be true.