Skip to main content

connect

Function connect 

Source
pub async fn connect(
    username: &UserId,
    pin: &Pin,
    product_id: &ProductId,
    system_id: Option<&SystemId>,
) -> Result<(Session, Challenge)>
Expand description

Connect to DKB and get a TAN challenge.

This performs:

  1. Sync dialog (get system_id + BPD)
  2. Normal dialog init with HKTAN:4 (triggers pushTAN)

Returns a Session (holding the dialog in the correct typestate) and a Challenge with info for the user.