Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test_tools/test_real_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func main() {
// Get credentials from environment variables or use defaults for testing
email := os.Getenv("X_MEGA_USER")
password := os.Getenv("X_MEGA_PASSWORD")
mfa := os.Getenv("X_MEGA_MFA")
fmt.Printf("Using email: %s\n", email)

// Create a new Mega client with debugging enabled
Expand Down Expand Up @@ -40,7 +41,7 @@ func main() {

// Set another breakpoint here to debug the login process
fmt.Println("DEBUG: About to call Login - set breakpoint here")
err := m.Login(email, password)
err := m.MultiFactorLogin(email, password, mfa)
if err != nil {
log.Fatalf("Login failed: %v", err)
}
Expand Down