@spacehq/sdk > GundbMetadataStore > fromIdentity
GundbMetadataStore.fromIdentity() method
Creates a new instance of this metadata store for users identity.
Signature:
static fromIdentity(username: string, userpass: string, gunOrServer?: GunInit | string | string[], logger?: Pino.Logger | boolean): Promise<GundbMetadataStore>;
Parameters
Parameter | Type | Description |
---|---|---|
username | string | Username of user |
userpass | string | Password of user |
gunOrServer | GunInit | string | string[] | initialized gun instance or peer server |
logger | Pino.Logger | boolean | Optional pino logger instance for debug mode |
Returns:
Promise<GundbMetadataStore>