Fix/social auth

I wasn't able to login through oauth. This PR solves this.