Currently, we don't have any function call that returns a boolean flag to check for successful active sessions. You will need to call any API-end point and handle the above exception to know the current active session status. Thought, we will take this as a feature request and add it to our list.