How can I check in my website if the user is logged in to my Discourse?

i’m not sure but i suspect you need to access the user_auth_token from the json data of the payload? just a guess to give you ideas. perhaps someone who knows more about Discourse connect SSO can help you.