setAuthInfo method
Set arbitrary authentication info key/values (e.g., ticket_id).
This method allows you to pass additional authentication information to the Dimelo SDK.
Parameters:
info- Map of key-value pairs containing authentication information
Returns true if auth info was set successfully, false otherwise.
Implementation
@override
Future<bool> setAuthInfo(Map<String, String> info) async {
try {
final result = await methodChannel.invokeMethod<bool>('setAuthInfo', info);
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Failed to set auth info: ${e.message}');
return false;
}
}