Original issue reported in dart optional sync demo https://github.com/powersync-ja/powersync.dart/discussions/174.
This ensures that we correctly copy over the todos with the authed user ID instead of the default local ID.
Instead of copying the local data over to the sync table verbatim (and getting the owner ID from the local table), we use the newly logged in user's ID.
Original issue reported in dart optional sync demo https://github.com/powersync-ja/powersync.dart/discussions/174. This ensures that we correctly copy over the todos with the authed user ID instead of the default local ID. Instead of copying the local data over to the sync table verbatim (and getting the owner ID from the local table), we use the newly logged in user's ID.