fabd / kanji-koohii

A web application to help Japanese language learners remember the kanji.
https://kanji.koohii.com
GNU Affero General Public License v3.0
228 stars 21 forks source link

Patreon account linking is broken #136

Closed tobia closed 6 years ago

tobia commented 6 years ago

I clicked on "Link your account" in /account, authorized the website on Patreon, but the return page gives 404:

https://kanji.koohii.com/account/patreon?code=(long code here)&state=None

Oops! We couldn't find this page for you.

fabd commented 6 years ago

Indeed. User "Dawars" also messaged me recently.

The tokens given here had expired:

https://www.patreon.com/portal/registration/register-clients

I updated "Client ID" & "Client Secret" in the private files (not in public repo).

As well as "Creator's Access Token " and "Creator's Refresh Token".

I pushed the changed file, and dawars told me it still doesn't work.

The "creator" access and refresh tokens changed also since I checked a cpl days ago. I don't know if that is normal. I don't think they changed this quickly when I first implemented their API.


I doubt they would change and break their API so I don't know. It's really annoying to test. I have another Patreon account I have to pledge with temporarily in order to test, then debug the xml responses.

Since there are no perks as of yet, I'll let it hang for now. It's just not fun at all for me to do. :/

fabd commented 6 years ago

Hi tobia

The bug is fixed. There was a mistaken assumption about tokens in my "sanity check" code (they are longer than before) , and potentially the redirect_uri needed to be updated to https.

If you try again it should work, in addition your account name should be highlighted in the patrons list

https://kanji.koohii.com/about/support