This is the power of HiveAuth.
The Hive Authentication Services provide a way for any applications, (either web, desktop, or mobile) to easily authenticate users without asking them to provide any password or private key.
When integrating HiveAuth protocol support, the Hive Authentication Services act as a bridge between any application and any Private Key Storage Application.
It works with WebSockets, the browser application can send messages to the socket and Hive Keychain Mobile application listens for any incoming message. When it receives message HKM performs operation and inform browser application through the same socket about the result
Thanks Guys i got it to work, i made a link to "has://auth_req/..." and if i click it keychain opens. i didnt get that, im still not sure how the phone know which app to open. But it works. :)
This lines helped me to get it: https://github.com/hiveauth/hive-auth-html/blob/main/index.html#L105-L107
The phone knows what app to open based on protocol.
For the link "has://auth_req/..."
The "has" part is the protocol name. Applications during installation can define in the system which protocol they can handle.