I have a website, to say, example.com. Now example.com uses a in-house custom login system. I also have a WordPress blog, blog.example.com
When logging into google, google redirects us to a lot of domains including youtube.com for a sign-in everywhere.
Now I want my users to get logged into the blog.example.com when they sign in to example.com
Provided, all the users of example.com are already registered as subscribers to WordPress (blog.example.com) using REST API when they register with example.com
In simple words, how to build a custom "Login with Google" kind of "Login with example.com" and integrate it into WordPress? Basically used for comments, likes and shares.