Authentication using 3rd Party (custom) Logic

Perhaps you can use a service that provides the type of authentication you’re after, but talks to Discourse with a standard protocol?(Like OpenID Connect?)

Is this alternative method meant to be related to existing user accounts, or is it some form of anonymous authorized login? If it’s linked to an existing account, then you might like to use an external identity service like Keycloak? AFAIK it can support OTP(One Time Password) and a variety of other methods. Might not be easier though.