Using SSO login (API) to connect 2 websites together

Dotgician

Up-and-Coming Sensation
Feb 9, 2020
283
76
38
FP$
779
Connecting your main website with your forum for log in purposes using SSO login.

So I decided to go with Mybb for my community forum which is for domain.com however I have set it up on a different server with a subdomain community.domain.com

Has anyone had any experience with this? or have any advice on which route I should do?