A new IndieAuth-like pattern is emerging for how to do this, based on the combination of OAuth, FedCM and DIDs.
https://notes.erlend.sh/3mpodece2qk2g