v3xlabs / dh-auth

Typescript Authentication Backend for the Dogehouse platform
GNU General Public License v3.0
5 stars 3 forks source link

Internal Server Error When Authorizing Without Profile Picture #15

Closed robiot closed 3 years ago

robiot commented 3 years ago

When you authorize with for example discord and you don't have a profile picture or it couldn't get some other data it gives this error: {"statusCode":500,"error":"Internal Server Error","message":"Cannot read property 'substr' of undefined"}

lucemans commented 3 years ago

https://github.com/dogehousetv/auth/blob/9e6661f4ad1403f9b5a7142857549b02a6827c50/src/controller/discord.ts#L47