Fix issues with 500 from authentication
Fix issues with 500 from authentication

N4SJAMK/teamboard-api,nikolauska/teamboard-api,santtusulander/teamboard-api,spherelot/teamboard-api,tanelih/teamboard-api,JanKuukkanen/Oauth-api,JanKuukkanen/teamboard-api,santtusulander/teamboard-api