Added an option to not throw an error on invalid token.

Fixes #6