Skip to content

Conversation

@rzats
Copy link
Contributor

@rzats rzats commented Oct 1, 2024

Closes #63.

  • Introduces a new store named apiKeySelections. This is populated when the application is initially launched, and saved in the browser's local storage.
  • This stores API and auth keys across different signals.
  • Also adds a checkbox to prevent API keys from being saved, which cleans the store immediately when deactivated.

Copy link
Contributor

@melange396 melange396 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change this so that all of the api key and authorization token fields across the different endpoints share the same singular backing store? That will save the user from having to enter their key into the forms of each individual endpoint, plus our permissions model allows us to grant permission to multiple endpoints via just one key (so a user should never need a plurality of keys).

Can we move the "Save API keys & auth tokens" checkbox next to or right above the "FETCH DATA" button, and can we make it default to unchecked?

@rzats rzats requested a review from melange396 October 9, 2024 14:08
@rzats rzats requested a review from melange396 November 21, 2024 17:18
Copy link
Contributor

@melange396 melange396 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think there is still one more superfluous variable, but otherwise this is probably good to go.

Copy link
Contributor

@melange396 melange396 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rzats rzats merged commit 6b6fe3b into dev Dec 18, 2024
6 checks passed
@rzats rzats deleted the rzatserkovnyi/persistent-apikeys branch December 18, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(Optionally) save API key between sessions

3 participants