Class: IdentityProviderRegistry

fabric-network~ IdentityProviderRegistry

Registry of identity providers for use by a wallet.

new IdentityProviderRegistry()

Methods


addProvider(provider)

Add a provider to the registry.
Parameters:
Name Type Description
provider module:fabric-network.IdentityProvider Identity provider.

getProvider(type)

Get the provider for a given type from the registry. Throws an error if no provider for the type exists.
Parameters:
Name Type Description
type string Identity type identifier.
Returns:
An identity provider.
Type
module:fabric-network.IdentityProvider