`IList<string> groups = AppendGroupPrefixes(context, connectionId, await Transport.GetGroupsToken())`

Then you don't need the `groupsToken` local var.