Connect local user account with providers

I want something like on other websites where a user can register with an email address and then link that account to google, github, discord etc.

Any idea how I can do this for users?

This topic has been created from a Discord post (1230479311685812274) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord