ThoreBor / Anki_Leaderboard

Anki 2.1 Add-On
https://ankiweb.net/shared/info/41708974
MIT License
52 stars 11 forks source link

Cannot sign-in on multiple devices #197

Closed Joshualtd closed 1 year ago

Joshualtd commented 1 year ago

I cannot sign in to the leaderboard on two devices, despite the fact I am using the same Anki user. I have one windows desktop and one MacBook device, both of which I use to access Anki, however, if I sign into the leaderboard on one device, the next time I open Anki on the other device, I get the following error.

image

To reproduce: sign in to leaderboard on one device close anki open anki on another device and sign into leaderboard close anki open anki on the first device and try to open leaderboard error message will appear

Info

ThoreBor commented 1 year ago

You're right, when using the add-on on multiple devices you're running into this problem. Thanks for letting me know. Because of how the log-in and authentication works, you have to log-in every time you switch the device. Because it seems like not many people use the add-on on multiple devices (you're the first one to report it), I probably won't fix it anytime soon. But I have a workaround in the meantime:

  1. Log-in to your account on one device
  2. On that device, got to the add-on folder (you can open it by going to Tools>Add-on>Select the Leaderboard>View Files
  3. Copy the meta.json file
  4. Replace the meta.json file on your second device with the one from the first device

After that you should be logged in on both devices, because there's an authentication token in the file and now it's the same on both devices.