fix: use dynamic port for Tetrate auth callback server (#7228)

Signed-off-by: raj-subhankar <subhankar.rj@gmail.com>
This commit is contained in:
Subhankar Raj
2026-02-16 05:10:10 +05:30
committed by GitHub
parent 9b6669a0b7
commit 4a5210e20e
4 changed files with 35 additions and 43 deletions
+3 -6
View File
@@ -10,13 +10,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create new PKCE auth flow
let mut auth_flow = TetrateAuth::new()?;
// Get the auth URL that would be opened
let auth_url = auth_flow.get_auth_url();
println!("Auth URL: {}", auth_url);
println!("\nStarting authentication flow...");
println!("Starting authentication flow...");
println!("This will:");
println!("1. Open your browser to the auth page");
println!("2. Start a local server on port 3000");
println!("1. Start a local server on a dynamic port");
println!("2. Open your browser to the auth page");
println!("3. Wait for the callback\n");
// Complete the full flow