Failed OAuth callbacks leave the listener running #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When token exchange fails, the callback handler in
ListenForToken()reports the error but does not close the HTTP server. Retrying login in the same TUI session with the same redirect port can consequently fail because the previous listener still owns the port.This was reproduced by sending a callback with an invalid OAuth state and then attempting to bind a second listener to the redirect address; the bind failed with
address already in useafter the error callback completed.