It's not working for me, Error getting metadata & Could not find authentication data

I keep getting these errors, please help
https://gist.github.com/Xeiniac/c6f764a251092d7e6c3033bc4b3e4b84
I replaced parts that were getting an error with the code from 1.18 and it seems to work well for me, not perfect but it works lol
This is an odd one. I've tried to reproduce it and also managed to do so but only once. For me it now happened after the first login when using the script. Even then the errors went away by themselves after refreshing the page. Now when I try to reproduced it with the same steps it still works. Cleared cookies and also tried with another browser. Can't get it to fail again.
Did it persist for you through page refreshes? Can you try switching to 1.22 again and see what happens?
I tried refeshing a lot when I first tried it and it still persisted, also tried restarting my pc and same issue. I've reninstalled it now and it seems to work now 🤔 It's strange but glad it works lol
No idea what's causing it but it seems to happen on first time use of it though it also persisted after I restarted so idk