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
| Name | Type | Description |
|---|---|---|
| config | TokenSourceFactoryConfig | The configuration object that specifies the type of token source factory to create and any associated settings. |
Returns
| Type | Description |
|---|---|
Tuple[TokenSourceFactory, error] | A TokenSourceFactory instance and an error if the configuration type is unknown. |