Hoe kan ik op mijn website controleren of de gebruiker is ingelogd op mijn Discourse?

i think you may need to get the user ID from the SSO payload and then use a Discourse API request get the username and current login status.