registerAuth method
Sets a callback for handling static keys.
Implementation
Future<void> registerAuth(
Function(String? key) callback,
) async {
nudgeAuthKeyCallback = callback;
await _nudgeCoreV2NativeServices.invokeNativeMethod(
'nudge_send_key_opt',
{'opt': true},
);
}