Using Metamask as Registration method

Warmest greetings

I had a question regarding using Metamask as a Registration method for users. I have a website which I use Social media apps such as Facebook, Twitter, and of course Google as an alternative form my registration to add queries in Mysql as a User. I had some digging in this matter but I did not find anything compelling or clear guidance on how to do this. The flow of what I want to do is as follows,

User pushes Metamask button for registration which would trigger Metamask and would pop up as a result and User would accept the website as a trusted source and our Database would register this particular ETH or BSC address as a new user and for login the same steps.

I wanted to know which tools, APIs and steps should I take to accomplish such a task.

I would be extremely grateful for your support