public function initAuth()
    {
        if ($this->_verified)
            return true;

        $output = $this->postRequest(
            'identification/bankid/mobile',
            [
                'useEasyLogin'        => false,
                'generateEasyLoginId' => false,
                'userId'              => $this->_username,
            ]);

        if ($output->status != 'USER_SIGN')
            throw new Exception('Unable to use Mobile BankID. Check if the user have enabled Mobile BankID.', 10);

        $this->saveSession();

        return true;
    }
public function initAuth()
    {
        if ($this->_verified)
            return true;

        $output = $this->postRequest(
            'identification/bankid/mobile',
            [
                'useEasyLogin'        => false,
                'generateEasyLoginId' => false,
                'userId'              => $this->_username,
            ]);

        if ($output->status != 'USER_SIGN')
            throw new Exception('Unable to use Mobile BankID. Check if the user have enabled Mobile BankID.', 10);

        $this->saveSession();

        return true;
    }
public function initAuth ( ) { if ( $ this -> _verified ) return true ; $ output = $ this -> postRequest ( 'identification/bankid/mobile' , [ 'useEasyLogin' => false , 'generateEasyLoginId' => false , 'userId' => $ this -> _username , ] ) ; if ( $ output -> status != 'USER_SIGN' ) throw new Exception ( 'Unable to use Mobile BankID. Check if the user have enabled Mobile BankID.' , 10 ) ; $ this -> saveSession ( ) ; return true ; }
Initiate Mobile BankID authentication

Sends verification request to the users Mobile BankID app.

@return bool
@throws Exception
Initiate Mobile BankID authentication