changeUser method
Changes the current Braze userId.
If sdkAuthSignature
is present, passes that token to the native layer.
See the Braze public docs for more info around the SDK Authentication feature.
Implementation
void changeUser(String userId, {String? sdkAuthSignature}) {
final Map<String, dynamic> params = <String, dynamic>{
"userId": userId,
};
if (sdkAuthSignature != null) {
params["sdkAuthSignature"] = sdkAuthSignature;
}
_channel.invokeMethod('changeUser', params);
}