diff --git a/src/identities.js b/src/identities.js index 2ef25fa..a2d2c6f 100644 --- a/src/identities.js +++ b/src/identities.js @@ -55,7 +55,7 @@ class Identities { const keystore = options.keystore || this.keystore const type = options.type || defaultType const identityProvider = type === defaultType ? new OrbitDBIdentityProvider(options.signingKeystore || keystore) : new (getHandlerFor(type))(options) - const id = await identityProvider.getId(options) + const id = options.id || await identityProvider.getId(options) if (options.migrate) { await options.migrate({ targetStore: keystore._store, targetId: id })