shernova 1.0.0
shernova: ^1.0.0 copied to clipboard
Shernova Phone Verification API — core Flutter SDK (headless).
shernova #
Headless Flutter SDK for the Shernova Phone Verification API.
import 'package:shernova/shernova.dart';
await Shernova.init(ShernovaConfig(
appId: 'YOUR_APP_ID',
publishableKey: 'pk_live_...',
apiBaseUrl: 'https://api.shernova.com',
packageName: 'com.example.app',
sha256: 'YOUR_APP_SHA256',
));
final session = await Shernova.verify(
phoneNumber: '+201012345678',
clientRequestId: 'optional-idempotency-key',
);
await for (final update in Shernova.watch(session.id)) {
if (update.status == 'verified') {
final receipt = await Shernova.getReceipt(session.id);
break;
}
}
For built-in UI, add shernova_ui.
Register your Android package + SHA256 in the Shernova dashboard before calling Shernova.init.