Authentication with Funkwhale causes the web app to crash
Steps to reproduce
- Navigate to https://app.retribute.me
- Select Funkwhale from the list of apps
- Enter your Funkwhale domain
- Log in and authenticate Retribute
What happens?
The screen is blank and no controls appear.
What should happen?
The user should see their avatar and the Retribute controls so they can fetch a list of artists.
Other information
Looking at the console, we are getting a TypeError when redirecting from Funkwhale.
Digging into the code, this looks like an issue with the getAbsoluteUrl function. The Funkwhale code is passing a value of data.raw.avatar.small_square_crop
back as an argument. When you look at data.raw
, it doesn't have this object. If the user has an avatar, you can access data.raw.avatar.urls.medium_square_crop
. If they don't, the object doesn't exist at all.