Skip to main content

save_oauth_token_with_mode

Function save_oauth_token_with_mode 

Source
pub fn save_oauth_token_with_mode(
    token: &OpenRouterToken,
    mode: AuthCredentialsStoreMode,
) -> Result<(), Error>
Expand description

Save an OAuth token to encrypted storage with specified mode.

ยงArguments

  • token - The OAuth token to save
  • mode - The storage mode to use (defaults to Keyring on macOS)