Skip to content

Commit

Permalink
fix(ssl-certificate-checker): adjust method interfaces to follow plug…
Browse files Browse the repository at this point in the history
…in api (#4799)

Co-authored-by: Fabio Martino <[email protected]>
  • Loading branch information
fabiomartino and Fabio Martino authored Jul 11, 2024
1 parent 9b950eb commit 0c39ec9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
}

0 comments on commit 0c39ec9

Please sign in to comment.