Skip to content

Question to shareViaPublicKey #75

@StephanGerbeth

Description

@StephanGerbeth

Hi,

I would like to use your shareViaPublicKey API.

await storage.shareViaPublicKey({
    publicKeys: [{
      id: 'user@email.com', // or any identifier for the user
      pk: 'user-pk-hex-or-multibase', // optional, omit if user doesn't exist yet, it would generate temp access key
    }],
    paths: [{
        bucket: 'personal',
        path: '/file/path/here'
    }],
});

However, I currently do not understand which value I should store behind the attribute 'id' or where I resolve this value.

publicKeys: [{
      id: 'user@email.com', // or any identifier for the user
      pk: 'user-pk-hex-or-multibase', // optional, omit if user doesn't exist yet, it would generate temp access key
    }]

Can you explain this to me in more detail?
Currently i use a modified Version of the class BrowserStorage to Authenticate users on the local device by Webauthn.

Thanks in advance
Stephan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions