@@ -196,15 +196,16 @@ export const setString = (key: StringKey, string: string) => {
196196} ;
197197
198198/**
199- * Sets the default value of the user's email and hides the email field from the reporting UI
199+ * Sets the default value of the user's email and ID and hides the email field from the reporting UI
200200 * and set the user's name to be included with all reports.
201201 * It also reset the chats on device to that email and removes user attributes,
202202 * user data and completed surveys.
203203 * @param email Email address to be set as the user's email.
204204 * @param name Name of the user to be set.
205+ * @param id optional ID of the user to be set.
205206 */
206- export const identifyUser = ( email : string , name : string ) => {
207- NativeInstabug . identifyUser ( email , name ) ;
207+ export const identifyUser = ( email : string , name : string , id ?: string ) => {
208+ NativeInstabug . identifyUser ( email , name , id ) ;
208209} ;
209210
210211/**
@@ -227,7 +228,7 @@ export const logUserEvent = (name: string) => {
227228
228229/**
229230 * Appends a log message to Instabug internal log.
230- * These logs are then sent along the next uploaded report.
231+ * These logs are then sent aalong the next uploaded report.
231232 * All log messages are timestamped.
232233 * Logs aren't cleared per single application run.
233234 * If you wish to reset the logs, use {@link clearLogs()}
0 commit comments