Fix the requireAuth flag
Closes #29 (closed)
What was the problem?
We are passing String
s to the JS component for the requireAuth
flag, and as long as that string is not empty, it will evaluate to true
.
The specs were passing (which was the most disturbing to me), because we assumed we received boolean values instead of strings.
Disclaimer
My javascript knowledge is quite sparse!