Hi all, ```userPool.addDomain('CognitoDomain', { ...
# sst
j
Hi all,
Copy code
userPool.addDomain('CognitoDomain', {
    cognitoDomain: {
        domainPrefix: 'airappauth',
    },
});
The above works to add a subdomain to the hosted userpool login, but I'm having trouble using a custom domain. I'm getting a linting error when trying to build.
Copy code
import * as certificatemanager from "@aws-cdk/aws-certificatemanager";

const certificateArn = 'arn:aws:acm:us-east-1:xxx:certificate/xxx-4d67-4f23-bf36-xxx';
const domainCert = certificatemanager.Certificate.fromCertificateArn(this, 'domainCert', certificateArn);
console.log('certificateArn', domainCert.certificateArn);
userPool.addDomain('CustomDomain', {
    customDomain: {
        domainName: '<http://xxx.xxx.xxx|xxx.xxx.xxx>',
        certificate: domainCert,
    },
});
j
What's the lint error you are getting?