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.
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 aPeer
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.