Skip to main content

NewTokenSourceFactory

No overview available.

def NewTokenSourceFactory(
config: TokenSourceFactoryConfig
) - > Tuple[TokenSourceFactory, error]

Creates a new TokenSourceFactory based on the provided configuration. This function acts as a factory to produce different types of token source factories depending on the specified configuration type.

Parameters

NameTypeDescription
configTokenSourceFactoryConfigThe configuration object that specifies the type of token source factory to create and any associated settings.

Returns

TypeDescription
Tuple[TokenSourceFactory, error]A TokenSourceFactory instance and an error if the configuration type is unknown.