Function: isAuthenticated()
ts
function isAuthenticated(): Promise<boolean>;Asks Zalo whether the stored session is still valid.
Returns
Promise<boolean>
true when the stored refresh token is still valid, false when there is no session or Zalo rejected it.
Throws
A numeric Zalo code on network or server errors, so a flaky connection is not mistaken for a logout. NOT_CONFIGURED when the Zalo App ID is missing, or INVALID_RESPONSE when a refresh it waited for failed.