IDIDManager.didManagerGetOrCreate() method
Returns an existing identifier or creates a new one for a specific alias
Signature:
didManagerGetOrCreate(args: IDIDManagerGetOrCreateArgs, context: IAgentContext<IKeyManager>): Promise<IIdentifier>;
Parameters
Parameter | Type | Description |
---|---|---|
args | IDIDManagerGetOrCreateArgs | The alias used for the search and the provider/kms/options used to create the DID when none is found. |
context | IAgentContext<IKeyManager> | *RESERVED* This is filled by the framework when the method is called. This method's execution context requires an agent that has IKeyManager methods. |
Returns:
Promise<IIdentifier>