public function verifyPassword(string $password): bool
    {
        $this->requiresAccessToken();

        try {
            $response = $this->send(
                'POST',
                'auth/verify',
                $this->getApiHeaders(),
                $this->mergeApiBody(compact('password'))
            );
        } catch (UnauthorizedException $e) {
            return false;
        }

        return $response->toArray()['success'] === true;
    }
public function verifyPassword(string $password): bool
    {
        $this->requiresAccessToken();

        try {
            $response = $this->send(
                'POST',
                'auth/verify',
                $this->getApiHeaders(),
                $this->mergeApiBody(compact('password'))
            );
        } catch (UnauthorizedException $e) {
            return false;
        }

        return $response->toArray()['success'] === true;
    }
public function verifyPassword ( string $ password ) : bool { $ this -> requiresAccessToken ( ) ; try { $ response = $ this -> send ( 'POST' , 'auth/verify' , $ this -> getApiHeaders ( ) , $ this -> mergeApiBody ( compact ( 'password' ) ) ) ; } catch ( UnauthorizedException $ e ) { return false ; } return $ response -> toArray ( ) [ 'success' ] === true ; }
Verify user password.

@param string $password

@return bool
Verify user password .