mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
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:
parent
9b950ebc46
commit
0c39ec959a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user