Fix IsLoggedIn() and some other error checking

This commit is contained in:
y a t s
2026-06-19 10:21:21 -04:00
parent 92438691f1
commit 74b923f06f
2 changed files with 11 additions and 3 deletions
+7
View File
@@ -64,12 +64,19 @@ func TestLogin(t *testing.T) {
t.Logf("2FA response: %+v\n", lr)
}
t.Logf("Checking RefreshSession()")
session, err := kf.RefreshSession(ctx)
if err != nil {
t.Error(err)
return
}
t.Logf("xf_session: %s\n", session)
t.Logf("Checking IsLoggedIn()\n")
if !kf.IsLoggedIn() {
t.Error("IsLoggedIn() test returned false.")
return
}
}
func genTest2FACode() (uint32, error) {