-
Notifications
You must be signed in to change notification settings - Fork 5
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
More consistent behavior with holochain client: make signUp() return the AppAgentClient #102
Comments
Hey @mattyg - this surfaces a difference between the holo model and the holochain model. In holo, this is equivalent to the agent that you have access to after you've completed the sign up form. (ie, called But before you have called So as soon as |
Ok right, I thought I remembered something about anonymous agents. So in that case, I wonder if Also if I don't want to allow anonymous users at all, could I disable it? Or ideally could I just call |
For reference, this is how I'm wrapping the holo client so I only need 1 conditional to setup the holo vs holochain client:
|
After discovering another issue with how web-sdk initializes, I have had to revise the above to:
|
I'm not sure if this makes sense or is possible, but I think this would be a clearer api that is more consistent with AppAgentClient:
The idea is the
HoloEnvoyClient
has all the functionality specific to Holo, while theAppAgentClient
can be exactly the same interface as working with holochain. ThesignUp()
function returns the actual client only after I have completed authentication.It doesn't make sense to me that I should have access to the
AppAgentClient
before authenticating, and it requires more difference in code to setup a holo vs holochain connection in my app.Let me know what you think or if this makes any sense @robbiecarlton
The text was updated successfully, but these errors were encountered: