QuinnDamerell / Baconit

A beatiful, powerful, reddit client for Windows 10.
https://www.reddit.com/r/BaconitDev/
GNU General Public License v2.0
242 stars 81 forks source link

Crashes upon login #97

Open sjohal21 opened 2 years ago

sjohal21 commented 2 years ago

Upon logging in to the app, in a normal user experience the app crashes soon after and no sign in occurs. When debugging in Visual Studio, there appears to be a null value on LoginPanel.xaml.cs line 94, "UserManager.SignInResult result = await App.BaconMan.UserMan.SignInNewUser();".

Running app on Windows 11, debugged in Visual Studio 2022.

ironyman commented 2 years ago

The issue is that the post to https://www.reddit.com/api/v1/access_token in GetAccessToken responds with

"{\"message\": \"Bad Request\", \"error\": 400}"

I'm not an oauth expert but I looked at some other reddit clients and they look like they're doing the same thing to me.