Server Connect Form - Desktop App

Hi all,
I have been going around in circles trying to find a solution to this (probably simple) problem.

I am new to App building in Wappler and not having the Server Connect panel available I am trying to implement the Web App for server connect which can be called within the app.

I have got a Server Connect action running (and working within the web project) but when I try and use it within my Desktop App it navigates to the Server Connect page and displays the JSON, showing the authorised identity, rather than returning the data for the source page to handle. I get that it is submitting the form rather than triggering the AJAX function but I don’t know how to resolve it.

This is for logging in. The slight complication is that I have a JS function that hashes the password before it is transmitted.

The app is desktop, running through Electron, built with Bootstrap (more familiar than F7)
Here is the form code:

What am I doing wrong?

Many thanks
Ben

@Teodor you have been really helpful to me before, can you help with this?