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 instantiate different token source factories depending on the specified type in the configuration.

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 token source type is unknown.