Skip to main content

fetch_remote_credentials

Function fetch_remote_credentials 

Source
pub async fn fetch_remote_credentials(
    session_id: &str,
    base_url: &str,
    access_token: &str,
    timeout_ms: u64,
    trusted_device_token: Option<&str>,
) -> Option<RemoteCredentials>
Expand description

Fetch remote credentials for a session via POST /v1/code/sessions/{id}/bridge

ยงArguments

  • session_id - The session ID
  • base_url - The API base URL
  • access_token - OAuth access token
  • timeout_ms - Request timeout in milliseconds
  • trusted_device_token - Optional trusted device token

Returns the remote credentials on success, or None if fetch fails.