You can just use standard
OAuth2.0/OpenID Connect Flows to integrate Trusted Accounts on any platform.
OAuth2.0/OpenID is also known from services like "Login with Google/Facebook/etc".
If you are new to the concept, here is a video to get you started: 🎞️ Learn how OAuth/OIDC works
There are many
OAuth2.0/OpenID libraries out there. Please, do not write your own code. Use open source & battle-tested libraries.
For a full list of client libraries go here.