The reason this was happening was because the access token from
gapi.auth.authorize({client_id: CLIENT_ID, scope: SCOPES, immediate: true}, userAuthed)
was returning undefined. This was due to the app not having permission to authorize the app to view google+ account data. Changing the the following
immediate: false
will prompt the user to give permission to the app, thus allowing for an authorized access token and for the remainder of the code to work.