helloJT
helloJT

Reputation: 3

Certificate Pinning issue(ERROR TypeError: Cannot read properties of undefined (reading 'then'))

I am using mfp 8 and this is a hybrid application is in Angular 7 with cordova.

I have implemented for certificate pinning. But getting undefined. Tried to put in deviceready also. Also tried in defferent places but same error. Could any one help please.

I have placed the certificate file in android code 'assests/certificates/mycer.cer'.

ngOnInit() {
    WL.Client.pinTrustedCertificatePublicKey('mycer.cer').then(() => {
        console.log("success pinning")
    }, () => {
        console.log("failure pinning")
    });
}

ERROR TypeError: Cannot read properties of undefined (reading 'then')

Console Err message

Upvotes: 0

Views: 652

Answers (0)

Related Questions