So I’ve been developing a Chrome Extension that loads in an inventory from a given Shopify store. Currently it’s a private app, as authentication was most convenient for me to develop with.
Chrome advises that for storage: “Confidential user information should not be stored! The storage area isn’t encrypted.” Per: Chrome storage
Given that the following is also true,
“Treat the API key and password like you would any other password, because whoever has access to these credentials has full API access to the store.” Per:Private apps
It follows that I shouldn’t store the API key, or API password.
However, I would somehow (if possible) like to be able to pull the API password (perhaps through some graphQL query) while only using the stores login information (Storename, store password; or perhaps Email+Password of a store admin), provided they already installed the private app with the appropriate permissions; and that this is within Shopifys terms of service.
If this is possible, any advice would be greatly appreciated or even a nudge in the more appropriate direction to development as I’m still very green in experience.