Skip to main content

should_use_interactive_auth_handoff

Function should_use_interactive_auth_handoff 

Source
pub fn should_use_interactive_auth_handoff(settings: &Settings) -> bool
Expand description

What: Determine whether Pacsea should perform interactive auth handoff.

Inputs:

  • settings: Reference to the application settings.

Output:

  • true when resolved auth mode is Interactive, otherwise false.

Details:

  • Uses resolve_auth_mode so capability-based coercions are respected.
  • Covers both explicit auth_mode = interactive and compatibility fallbacks (for example, doas + prompt coercion).