Discourse SSO Configuration

I have spent quite a bit of time reading the documentation and fiddling to no avail.

I cannot get Discourse Connect/SSo to work with my app.

I have created my own app that has a PWA, Android and iOS app. Now I want to be able to access the forum only through SSO from anyone of my apps.

Something that I think that I might have to do is create a single separate server that handles the SSO auth? And this server is the server I need to input into the “discourse connect URL”. However, I am not entirely sure.

I still need to check and confirm whether or not I am processing the payload and sig correctly.

If anyone has any experience with this and can shed some light on it I will be very appreciative.

My backend server that handles the requests is written in NodeJS. But there are multiple backend servers to deal with ping.