_arr[i] = '"' + v.replace('=', '":"') + '"';
		});
		qp = qp ? JSON.parse('{' + arr.join() + '}',
				function (key, value) {
					return key === "" ? value : decodeURIComponent(value);
				}
		) : {};

		isValid = qp.state === sentState;

		if ((
				oauth2.auth.schema.get("flow") === "accessCode" ||
				oauth2.auth.schema.get("flow") === "authorizationCode" ||
				oauth2.auth.schema.get("flow") === "authorization_code"
		) && !oauth2.auth.code) {
			if (!isValid) {
				oauth2.errCb({
					authId: oauth2.a