Home > @i2analyze/i2connect > authenticationField
authenticationField() function
The @authenticationField
decorator, which configures an authenticator method parameter to receive the value from a field on an authentication dialog.
Signature:
export declare function authenticationField(config: connectors.IAuthenticationField): ParameterDecorator;
Introduced: API version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
config | connectors.IAuthenticationField | Settings that determine the label and the content type of the authentication field. |
Returns:
ParameterDecorator
Example
usernameAndPasswordAuthenticator(
@authenticationField({
label: "User name",
type: 'text',
}) username: string,
...)