ssl_pining_checking

Creator: coderz1093

Last updated:

0 purchases

ssl_pining_checking Image
ssl_pining_checking Images

Languages

Categories

Add to Cart

Description:

ssl pining checking

Create assets/certification folder put the "


just right click and reName ecxtension .cer to pem


By Akhilesh Goswami
check out this video
https://youtu.be/7ZrpFIZ5J1Y
add in pubspec.yaml
add this line
assets:

assets/certification/



Expamle


import 'package:http/http.dart' as http;
http.Client client;
@override
void onInit() async {
client = await SSLPining().getSSLPinningClient();
super.onInit();
copied to clipboard
}
Calling Api throw client
final http.Response response = await client.post(Uri.parse(url),
headers: <String, String>{
'Content-Type': 'application/json',
'Authorization': 'Token ' +
await prefs.getString(Constants.token, isEncrypted: true)
},
body: json.encode(data));

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.