SyntaxError: Unexpected token after Authenticating using google Authenticator

That means you have PHP error so the response is not JSON as expected, you may Check HTTP Response.