I want to authenticate user with custom URL schema in which the link looks like this
appName://https://www.sitename.com/user-token
I implemented custom url successfully in info.plist file so that when clicking appName:// open my destop app.
My loadURL code looks like this in app.js
mainWindow.loadUrl('http://www.sitename.com/', {
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.52 Safari/537.36'
});
Now how can i change the URL when the user clicks this
<a href="appName://https://www.sitename.com/user-token">Open App</a>
Any help?