fix double render on api when token is invalid
Merge pull request #146 from CruGlobal/fix-double-render

fix double render on api when token is invalid