fromValue

fun fromValue(value: String?): AuthMethod?

Resolves a wire value, or null when it is absent or unrecognized.

Used for two different untrusted inputs: an auth-method marker on an inbound deep link, and an entry in allowedAuthMethods that a newer backend may have added before this SDK knew about it. Neither should throw.