authAPi throws errors if passed bad JWT