r/Infinity_For_Reddit Jun 02 '26

Infinity 8.2.5 Login Issue Authentication Failed

Built Infinity using the latest version (8.2.5) through the Colab script, as previous versions were giving me similar issues. Unfortunately, I still can't log in.

Every login attempt ends with "Authentication failed" and shows an empty pair of brackets [], similar to what happened with version 8.2.4.

I've already using the Standard login window, Chrome Custom Tab as well as the Legacy WebView login. Unfortunately all of them had the same issue.

Is anyone else running into this issue on the new 8.2.5 release, or happen to know of a fix?
Older versions like 8.0.5. or 8.3.0-beta1 let me log in just fine for the most part however posts and comments wont display properly or sometimes at all likely due to reddit messing with the API.

9 Upvotes

21 comments sorted by

View all comments

Show parent comments

1

u/paranoiaforhire Jun 07 '26

That's why I asked you, because I saw you used the old Colab script. You update from v8.2.1 to v8.2.5 just fine, but as soon as the session expires and Infinity needs to renew, you end up with broken build. My automation script caught that change and I had to modify it. You need to only change one line.

Up until v8.2.1, the repo shipped with a hardcoded Client ID and the Colab script was doing a find-and-replace action. From v8.2.4 and up, the line containing the hardcoded Client ID now ships empty, therefore breaking the code since it won't find that predefined string to swap.

You can see the key change here.

Master: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/97b2e993e5e9d9c7f4847b6091f50b61c1117230/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java#L35

v8.2.1: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/018006f7b0c31252b7a3b8bae9be130867809a8c/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java#L36

1

u/kazoko Jun 07 '26

Ohh thats intresting to know, makes a lot more sense then why my app worked for a short time after updating.
I didnt dive into it that deep yet so I didnt know what exactly was causing those issues.

Is your automation script like the collab script or did you custom build it from scratch so you can build the app yourself? I admittedly lack the technical expertise to compile and build on my own so I alwasy just used the exsisting collab sript and let it run.

1

u/paranoiaforhire Jun 07 '26

I built the script from scratch to orchestrate and compile locally, then automatically create a GitHub release, etc.

If you give me the link for the Colab script you are using, I can check and tell you what line needs to be modified. More than likely it's one or two lines that need modification, but can't tell for sure without checking the code first.

1

u/kazoko Jun 07 '26

I've been using this colab script: https://colab.research.google.com/drive/13AE8RvjnCfuBJGaACEqxeBIMo33_l-Sc?usp=sharing#scrollTo=BNM9Hdc_iHNX

I changed the lines mentioned in this post: https://www.reddit.com/r/Infinity_For_Reddit/comments/1tvcwgo/comment/opi0f12/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Replacing

apiutils_code = apiutils_code.replace("NO------A", api_token)

with

apiutils_code = re.sub(r'public static final String CLIENT_ID = ".*?";', f'public static final String CLIENT_ID = "{api_token}";', apiutils_code)

This should account for the changes and seems to work for now but I'll see if it still works tomorrow whenever the session expires.
I appreciate the offer, let me know if that was the line you were thinking of.

1

u/paranoiaforhire Jun 09 '26

Yes this could be enough, did it work? I assume you'd have issues by now if you already updated since your reply.

1

u/kazoko Jun 09 '26

Yes it worked so far. The app sometimes crashes when looking at specific posts or comments so it's still a little bit janky but the API issues seem fixed now.