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

Auth: unable to update account #595

Closed
Azkae opened this issue Nov 16, 2022 · 1 comment
Closed

Auth: unable to update account #595

Azkae opened this issue Nov 16, 2022 · 1 comment

Comments

@Azkae
Copy link

Azkae commented Nov 16, 2022

Describe the bug
It seems impossible to update accounts in the Auth SDK:

Auth.configure(account: Account("eip155:1:0xdeadbeef")!)

Auth.instance.authRequestPublisher.receive(on: DispatchQueue.main).sink { request in
    [...]
}.store(in: &subscribers)

// [...] User imports another wallet

// This call gets ignored:
Auth.configure(account: Account("eip155:1:0xcafe")!)

// Auth.instance.account still contains "eip155:1:0xdeadbeef"

Once Auth.instance is called there is no way to update Auth.instance.account since further calls to Auth.configure are ignored.

SDK Version

  • Client: Swift SDK v2
  • Version 1.0.5
@Azkae Azkae added the bug Something isn't working label Nov 16, 2022
@llbartekll
Copy link
Contributor

llbartekll commented Nov 17, 2022

It was not intended to work this way but we have multi-account authentication on our roadmap.

@llbartekll llbartekll removed the bug Something isn't working label Nov 17, 2022
@llbartekll llbartekll moved this to Todo in Swift SDK Nov 25, 2022
@github-project-automation github-project-automation bot moved this from Todo to Done in Swift SDK Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants