Home > @i2analyze/i2connect > utility > AuthenticatorCallbackParameters
utility.AuthenticatorCallbackParameters type
A utility type to determine the callback parameters if a service uses authentication.
Signature:
type AuthenticatorCallbackParameters<T extends services.IAuthenticatorServiceConfig> = T extends {
authenticator: services.IAuthenticator;
} ? {
authToken: string;
} : T extends {
authenticator: services.IAuthenticator | undefined;
} ? {
authToken: string | undefined;
} : unknown;
References: services.IAuthenticatorServiceConfig, services.IAuthenticator
Introduced: API version 2.0
Type Parameters
Parameter | Type | Description |
---|---|---|
T | extends services.IAuthenticatorServiceConfig | The type of service configuration. |