Any special characters in JWT can cause its parsing to fail. This may also be an issue with the SECRET having special characters We will have to check both and see if we can reproduce