growthbook / devtools

GrowthBook DevTools extension for Chrome
MIT License
5 stars 5 forks source link

Devtools v2 - API Authentication #9

Closed bttf closed 1 year ago

bttf commented 1 year ago

gb-chrome-ext-popup

tinahollygb commented 1 year ago

Generally an options page is a better approach for adding configuration items like the API key. It will also allow us to add more configuration later, e.g. self-hosted URL. What I've done in the past is had a button in the popup that opens the options page. We can sync options across Chrome installs for a Chrome profile with the Chrome storage API.

bttf commented 1 year ago

@tinahollygb You're right, I think the options page would be better suited for this configuration. The button to navigate to it is a good tip, will look into it. And definitely agree on using Chrome storage API, we are using it in storage.ts (sync option).

I'll make the changes to move it to the options page but if any folks (cc @jdorn) have objections please let me know!