What is the best way to migrate account data to another account?

i want to use “authenticate with the device” as the guest login in my game. but after changing to Google or Email Authentication move user data to a newly created account. is there any way for this?

is there any pretediceted method for this in Nakama?

For this you’d use the link/unlink APIs to attach the Google ID or email to an existing account.