You can rent it from AWS, of course. It's called Cognito.
https://aws.amazon.com/cognito/
You can also offload that responsibility for user data/credentials to Google/Facebook et al as you see many places with "Login with Facebook", making your users pay in privacy-invasion instead of bearing the burden of properly securing your user's PII yourself...
As a user, it seemed like "so i need to login to Google on Mozilla.org... it's just a wrapper for my Gmail and/or Mozilla account?"
Specialize in storing personal data (name, address etc.)
Provide APIs that only allow gentle exfiltration of data. e.g. < 10K queries per minute/hour/day whatever.
Have alternate paths (e.g. manual procedures) when greater volumes are required (e.g. for disaster recovery testing).
Then get it audited to death by some serious security firms.
Or host your own by using Hashicorp Vault.
Similar to how Stripe handles payments with a token, we could all store tokens for User information (eg the Id) and query the vault (or operate on the vault, eg, validate login, or return email, etc) using keys.
The service could be hardened (like Stripe) to ensure the data is stored securely, and detect ex-filtration attempts (eg, queries for multiple customers at once being abnormal) and automatically block that.