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

fix: make login idempotent #1149

Merged
merged 1 commit into from
Nov 16, 2023
Merged

fix: make login idempotent #1149

merged 1 commit into from
Nov 16, 2023

Conversation

Gozala
Copy link
Contributor

@Gozala Gozala commented Nov 16, 2023

Logging with the same account several times creates and stores redundant proofs and then sends them over during invocations.

Changes here avoid this redundancy by returning an account using existing proofs if you already happen to have them, essentially making login idempotent.

@Gozala Gozala merged commit c1df8d8 into main Nov 16, 2023
3 checks passed
@Gozala Gozala deleted the fix/login-idempotence branch November 16, 2023 07:04
Gozala added a commit that referenced this pull request Nov 16, 2023
🤖 I have created a release *beep* *boop*
---


##
[11.0.1](w3up-client-v11.0.0...w3up-client-v11.0.1)
(2023-11-16)


### Bug Fixes

* issue where typedoc docs would only show full docs for w3up-client
([#1141](#1141))
([0b8d3f3](0b8d3f3))
* make login idempotent
([#1149](#1149))
([c1df8d8](c1df8d8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: Irakli Gozalishvili <contact@gozala.io>
olizilla added a commit to storacha/w3cli that referenced this pull request Nov 22, 2023
landing storacha/w3up#1149 in w3cli

split out createSpace to it's own helper function so tests can opt in to
loginAndCreateSpace when they want the do it all in one convinence.

logging in repeatedly isn't what we are typically testing. Calling the
login helper repeatedly fails currently. I'll add a test and fix for
that issue in a separate PR.

License: MIT

---------

Signed-off-by: Oli Evans <oli@protocol.ai>
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.

3 participants