CognitoIdentityId constructor
CognitoIdentityId(
- String _identityPoolId,
- CognitoUserPool _pool, {
- String? authenticator,
- String? token,
Implementation
CognitoIdentityId(this._identityPoolId, this._pool,
{String? authenticator, String? token})
: _region = _pool.getRegion(),
_client = _pool.client,
_identityIdKey = 'aws.cognito.identity-id.$_identityPoolId',
_token = token,
_authenticator = authenticator ??
'cognito-idp.${_pool.getRegion()}.amazonaws.com/${_pool.getUserPoolId()}' {
if (_token != null) {
_loginParam = {
_authenticator: _token,
};
}
}