fix(ssl-certificate-checker): adjust method interfaces to follow plugin api (#4799)

Co-authored-by: Fabio Martino <FMARTIN1@autopistas.com>
This commit is contained in:
Fabio Martino 2024-07-11 07:03:50 +01:00 committed by GitHub
parent 9b950ebc46
commit 0c39ec959a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ export class SSLCertificateChecker extends AwesomeCordovaNativePlugin {
* @return {Promise<void>} Returns a promise that resolves if the certificate is valid, otherwise rejects with an error.
*/
@Cordova()
check(serverURL: string, allowedFingerprint: string): Promise<void> {
check(serverURL: string, allowedFingerprint: string | string[]): Promise<void> {
return;
}
@ -56,7 +56,7 @@ export class SSLCertificateChecker extends AwesomeCordovaNativePlugin {
* @deprecated This function is considered insecure.
*/
@Cordova()
checkInCertChain(serverURL: string, allowedFingerprint: string): Promise<void> {
checkInCertChain(serverURL: string, allowedFingerprint: string | string[]): Promise<void> {
return;
}
}