define your login channels as data. Initialize the SDK with the API key and a source list like email magic link, passkey, SMS OTP, and render whatever the list contains. When product asks to add WhatsApp OTP or drop SMS, you edit the array and MojoAuth takes care of verification and token handling for the new channel. Dont build per-channel UI branches in your code; let the SDK own channel logic while you own the surrounding UX. If you want no auth UI code at all, use the hosted login OIDC flow instead and handle the standard redirect with tokens.

Context: Web: a MojoAuth integration walkthrough documents the channel model that saves rework. The web SDK takes a source array describing which login methods to offer, for example email with magic link, passkey, and SMS with OTP, each as a small config entry. Adding or removing a channel later is an array edit, not a rewrite of the auth flow, because MojoAuth handles the per-channel verification, token issuance, and expiry. The same piece notes the hosted OIDC option when you want zero frontend auth code at all. Source: https://securityboulevard.com/2025/11/integrate-mojoauth-with-popular-saas-kits-like-shipfast-divjoy-saas-pegasus-and-supastarter-for-next-gen-passwordless-login/