Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: store multiple tokens #3272

Merged

Conversation

Prakhar-Agarwal-byte
Copy link
Contributor

@Prakhar-Agarwal-byte Prakhar-Agarwal-byte commented May 17, 2024

Token management for #3273

  • Update PersistantState schema to have a list of saved tokens for multiple accounts
  • Create migrations for the same

@sandipndev
Copy link
Member

@Prakhar-Agarwal-byte unit tests are failing, it expects the new schema. Can you fix that?

Copy link
Member

@sandipndev sandipndev left a comment

Choose a reason for hiding this comment

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

Good initial draft, I'll need to review this PR locally once after the comments are addressed and the tests are passing before approval.

app/store/persistent-state/state-migrations.ts Outdated Show resolved Hide resolved
app/hooks/use-app-config.ts Outdated Show resolved Hide resolved
@nicolasburtey
Copy link
Member

nicolasburtey commented May 19, 2024

I think this PR should also be merged first: #3122
(but the PR is not in a mergeable state yet)

Before we think of multiple token, we need to make storing tokens safer

@Prakhar-Agarwal-byte Prakhar-Agarwal-byte changed the base branch from main to multi-account June 14, 2024 19:22
@sandipndev
Copy link
Member

I will do a thorough testing on logged in phones / non logged in phones and verify the user is not logged out before merging.

@sandipndev sandipndev merged commit 9ccb59b into GaloyMoney:multi-account Jun 24, 2024
1 check passed
@sandipndev
Copy link
Member

Verified and merged!

sandipndev pushed a commit to Prakhar-Agarwal-byte/galoy-mobile that referenced this pull request Jul 30, 2024
* feat: store multiple tokens

Signed-off-by: Prakhar Agarwal <[email protected]>

* fix: update persistent state property names, update test

Signed-off-by: Prakhar Agarwal <[email protected]>

* fix: current token should be present in all tokens when migrating from schema 6 to 7

Signed-off-by: Prakhar Agarwal <[email protected]>

---------

Signed-off-by: Prakhar Agarwal <[email protected]>
dolcalmi pushed a commit that referenced this pull request Nov 5, 2024
* feat: store multiple tokens

Signed-off-by: Prakhar Agarwal <[email protected]>

* fix: update persistent state property names, update test

Signed-off-by: Prakhar Agarwal <[email protected]>

* fix: current token should be present in all tokens when migrating from schema 6 to 7

Signed-off-by: Prakhar Agarwal <[email protected]>

---------

Signed-off-by: Prakhar Agarwal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi Account
3 participants