updateUserId()

Change to a new user in your Feathery session or update the existing user's ID

Function that changes the current user session to the new ID specified.

ParameterTypeDescription

newUserId

string (optional)

New user ID to change to. If not specified, Feathery will generate a new unique ID.

merge

boolean (optional)

If merge is false or not specified, the user session will be changed. If merge is true, the old and new user sessions will be merged into a single session. This means data like field values and user metrics will also be merged.

Last updated