pub async fn auth_by_pin(
        &self,
        device_id: &str,
        session_id: &str,
        pin_hash: &str,
        old_session_id: &str,
    ) -> ResponsePayload<UserInfo> {
        self.request(
            "/v1/auth/by/pin",
            &[("deviceId", device_id), ("sessionid", session_id)],
            &[
                ("pinHash", pin_hash),
                ("oldSessionId", old_session_id),
                ("auth_type", "pin"),
            ],
        )
        .await
        .json()
        .await
        .unwrap()
    }
/// Auth by pin like a mobile app does it with pin and fingerprint.
///
/// To use you should know your previous (maybe outdated) session id. Request new session and
/// provider both sessions (old and new) with pin hash, now new session has full access like
/// old session previously.
Auth by pin like a mobile app does it with pin and fingerprint.
To use you should know your previous (maybe outdated) session id. Request new session and
provider both sessions (old and new) with pin hash, now new session has full access like
old session previously.
Auth by pin like a mobile app does it with pin and fingerprint . To use you should know your previous ( maybe outdated ) session id . Request new session and provider both sessions ( old and new ) with pin hash now new session has full access like old session previously .
pub async fn auth_by_pin(
        &self,
        device_id: &str,
        session_id: &str,
        pin_hash: &str,
        old_session_id: &str,
    ) -> ResponsePayload<UserInfo> {
        self.request(
            "/v1/auth/by/pin",
            &[("deviceId", device_id), ("sessionid", session_id)],
            &[
                ("pinHash", pin_hash),
                ("oldSessionId", old_session_id),
                ("auth_type", "pin"),
            ],
        )
        .await
        .json()
        .await
        .unwrap()
    }
pub async fn auth_by_pin ( & self , device_id : & str , session_id : & str , pin_hash : & str , old_session_id : & str , ) -> ResponsePayload < UserInfo > { self . request ( " " , & [ ( " " , device_id ) , ( " " , session_id ) ] , & [ ( " " , pin_hash ) , ( " " , old_session_id ) , ( " " , " " ) , ] , ) . await . json ( ) . await . unwrap ( ) }
Auth by pin like a mobile app does it with pin and fingerprint.
Auth by pin like a mobile app does it with pin and fingerprint .
&self
device_id
&str
session_id
&str
pin_hash
&str
old_session_id
&str
&self
device_id
&str
session_id
&str
pin_hash
&str
old_session_id
&str