Determine if amity session is active

Hi @SocialPlus_Support, how could I know if a user is currently logged in or not ?

Thanks in advance!

Hello @JuanMorales, you can observe the session state to determine the current session status. If the user login is successful, the session state will be set to ‘established’.

Reference: https://docs.amity.co/amity-sdk/core-concepts/session-state