Skip to content

Commit 0c39ec9

Browse files
fabiomartinoFabio Martino
and
Fabio Martino
authoredJul 11, 2024
fix(ssl-certificate-checker): adjust method interfaces to follow plugin api (#4799)
Co-authored-by: Fabio Martino <[email protected]>
1 parent 9b950eb commit 0c39ec9

File tree

1 file changed

+2
-2
lines changed
  • src/@awesome-cordova-plugins/plugins/ssl-certificate-checker

1 file changed

+2
-2
lines changed
 

Diff for: ‎src/@awesome-cordova-plugins/plugins/ssl-certificate-checker/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class SSLCertificateChecker extends AwesomeCordovaNativePlugin {
4242
* @return {Promise<void>} Returns a promise that resolves if the certificate is valid, otherwise rejects with an error.
4343
*/
4444
@Cordova()
45-
check(serverURL: string, allowedFingerprint: string): Promise<void> {
45+
check(serverURL: string, allowedFingerprint: string | string[]): Promise<void> {
4646
return;
4747
}
4848

@@ -56,7 +56,7 @@ export class SSLCertificateChecker extends AwesomeCordovaNativePlugin {
5656
* @deprecated This function is considered insecure.
5757
*/
5858
@Cordova()
59-
checkInCertChain(serverURL: string, allowedFingerprint: string): Promise<void> {
59+
checkInCertChain(serverURL: string, allowedFingerprint: string | string[]): Promise<void> {
6060
return;
6161
}
6262
}

0 commit comments

Comments
 (0)