jsonwebtoken version 0.12.6 has not yet implemented the parserBuilder(). I had that problem on my application but I found out that for one to use parserBuilder use version 0.11.6 of the jsonwebtoken. That will clear the error. Else in version 0.12.6 use parser() although there is a deprecation issue.