Please note that the transition function $t_{NS}$ defined on the equator $U_N \cap U_S \approx S^1$ of the bundle $P(S^2, U(1))$ is given by the formula:
$$ t_{NS}(\phi) = \exp[i\varphi(\phi)] \qquad (\varphi:S^1\to \mathbb R) \tag{10.90}$$
and it is periodic in the azimuthal angle $\phi\ $: $\ t_{NS}(\phi +2\pi) \equiv t_{NS}(\phi).$ Observe that the transition function represents a phase in the quantum wavefunction. Since a vector $A_\mu$ couples to an infinitesimal element of the worldline $\textrm dx^\mu$ via terms such as $(1+\frac{ie}\hbar A_\mu\textrm dx^\mu),$ the said phase is expressed as: $t_{NS}=\exp[\frac{ie}\hbar\int A_\mu\textrm dx^\mu].$ For a closed worldline $\Gamma =\partial\Sigma$ representing a full rotation around the equator, this phase is determined by
$$ \Delta\varphi = \frac{e}\hbar \oint_\Gamma A_\mu\textrm dx^\mu = \frac{e}\hbar \int_\Sigma (\vec\nabla \times \vec{A})\cdot \textrm d\vec\Sigma = \frac{e}\hbar \int_\Sigma \vec B\cdot \textrm d\vec\Sigma = \frac{eg}\hbar \,. $$
Since you understand that $\Delta \varphi \in 2\pi \mathbb Z,$ it follows that you also understand $\frac{eg}\hbar \in 2\pi \mathbb Z.$