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

Add way to check if Auth has been set up yet #339

Open
sgwilym opened this issue May 30, 2024 · 0 comments
Open

Add way to check if Auth has been set up yet #339

sgwilym opened this issue May 30, 2024 · 0 comments
Labels
enhancement New feature or request willow Issues with the willow branch.
Milestone

Comments

@sgwilym
Copy link
Contributor

sgwilym commented May 30, 2024

What's the problem you want solved?

The new Auth class has no way to see if a password has previously been set or not, meaning you just have to try and construct one and see what happens. This makes building a UI where you set up a Peer for the first time difficult.

Is there a solution you'd like to recommend?

Add a new Auth.isSetup(storage) static method which checks if an encrypted challenge has already been set in the given storage.

@sgwilym sgwilym added enhancement New feature or request willow Issues with the willow branch. labels May 30, 2024
@sgwilym sgwilym added this to the Willow milestone May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request willow Issues with the willow branch.
Projects
Development

No branches or pull requests

1 participant