Not all of the websites I’ll need to interact with will have social login, so I don’t think that’s quite what I’m after.
My end goal is to compile sales data from 5 different sources into one desktop/mobile app. Each website has their own sales dashboard which loads data from their own private API.
So for example, on Amazon’s own website the sales dashboard fetches sales data by making an authenticated GET request to api.amazon.com/sales-data which returns a json object like {sales: 5}. I want to mimic that request in my app to get the sales data and then display it in the app.
I’ve found some potentially useful info about cookies in Electron, but I’m really new to all of this and am not sure if I can do the same thing in Quasar. Here’s the snippet:
// Query all cookies associated with a specific url.
session.defaultSession.cookies.get({ url: 'http://www.github.com' }, (error, cookies) => {
console.log(error, cookies)
})
So I was thinking this could let me open a window for the user to login, then once they’re logged in, I could use that to grab the cookie and make the authenticated GET request needed to fetch their sales data.
Is something like this possible in Quasar? I’d like to use quasar over electron if possible so that the same code could be used for mobile app as well.