you dont really need magisk, just root and backup manager.
On a rooted phone install the app from play store and login to your account as normal.
Use a backup app such as Swift Backup and Backup Data.
Uninstall and install Mod Menu version.
Restore the backup data only open app, and you should stay login.