Skip to content

Allow web5.connect to work with a custom UserAgent #949

Description

Note: @shamilovtim's Additions
Users want to be able to provide custom optionality to the UserAgent used by Web5.connect
We should be able to do this without bloating the params and argument drilling all of the params through multiple methods
Therefore we could allow users to pass a custom Web5 User Agent in order to solve this problem
This should eliminate the agentVault param


For example, to add dataPath as a parameter for Web5.connect() method. The dataPath should be forwarded to this request within the connect method:

const userAgent = await Web5UserAgent.create({ agentVault });

If this create method is provided with dataPath, it could be possible to have separate databases locally on the same app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    • Status

      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions