Skip to content

Fix the requireAuth flag

David Dieulivol requested to merge 29-fix_require_auth_flag into master

Closes #29 (closed)

What was the problem?

We are passing Strings 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!

Merge request reports