@spacehq/sdk > IdentityStorage
IdentityStorage interface
An IdentityStorage handles persistence of Identity for the Users class.
The sdk provides two implementation for this. See BrowserStorage and FileStorage.
Signature:
export interface IdentityStorage
Properties
| Property | Type | Description |
|---|---|---|
| add | (identity: Identity) => Promise<void> | |
| list | () => Promise<Identity[]> | |
| remove | (key: string) => Promise<void> |