decode
Reconstruct a provider from its class-name discriminator + metadata JSON. Returns NoAuthProvider when the discriminator is unknown / metadata is missing / decode fails — never throws. Callers wanting to fail loudly should null-check upstream.
Reconstruct a provider from its class-name discriminator + metadata JSON. Returns NoAuthProvider when the discriminator is unknown / metadata is missing / decode fails — never throws. Callers wanting to fail loudly should null-check upstream.