-
Book Overview & Buying
-
Table Of Contents
.Go Programming Blueprints - Second Edition
By :
So far, our chat application has made use of the OAuth2 protocol to allow users to sign in to our application so that we know who is saying what. In this chapter, we are going to add profile pictures to make the chatting experience more engaging.
We will look at the following ways to add pictures or avatars alongside the messages in our application:
The first two options allow us to delegate the hosting of pictures to a third party either an authorization service or https://en.gravatar.com/ which is great because it reduces the cost of hosting our application (in terms of storage costs and bandwidth, since the user's browsers will actually download the pictures from the servers of the authenticating...