Skip to content

feat: new auth flow, refactor state#185

Merged
fa-sharp merged 59 commits intomainfrom
refactor-state
Mar 16, 2026
Merged

feat: new auth flow, refactor state#185
fa-sharp merged 59 commits intomainfrom
refactor-state

Conversation

@fa-sharp
Copy link
Owner

@fa-sharp fa-sharp commented Mar 12, 2026

This PR introduces a more secure auth flow, and a major refactoring of internal state and storage syncing.

Auth

  • OAuth login and refresh is now entirely handled by backend server, with added PKCE support on login
  • Access and refresh tokens are encrypted by the backend and stored in an opaque auth token by the client
  • Client requests the access token when needed, and holds it in memory (session storage). Refresh token is never exposed.

State and storage

  • Refactored state into composable hooks
  • Using Zustand for transaction form state / persistence
  • Migrated from Plasmo to WXT for browser extension storage

@fa-sharp fa-sharp changed the title New auth flow, refactor state feat: new auth flow, refactor state Mar 12, 2026
@fa-sharp fa-sharp merged commit 5dd9c87 into main Mar 16, 2026
5 checks passed
@fa-sharp fa-sharp deleted the refactor-state branch March 16, 2026 08:54
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.

1 participant