Unless the user chooses to “Ignore/Skip” the request, the app is notified of the users decision thereby it receiving a response. The part before : likely is the safe-<app-name> portion which is encoded and the rest is the actual content. If you pass the received url to the native libs via the decode ipc fns, then I’d assume that should return a result which indicates AuthDenied, which thereby should let the app know the user has failed to authorise this app request.
I tried to window.safeApp.connectAuthorised, despite having “DENYed” and got rejected :
Uncaught (in promise) Error: IPC error: AuthDenied
I still need to figure out how to , as you said, decode the response as a “AuthDenied” before actually trying to do something else. None of the examples that I saw seem to take care of this case.
EDIT : Or not ! We can just handle it when the error is thrown, so I mark this solved . thx !