                 }
             }
 
+            let yepTeamUsername = "yep_team"
+
+            func yepTeamFromDiscoveredUser(discoveredUser: DiscoveredUser, inRealm realm: Realm) -> User? {
+
+                var yepTeam = userWithUsername(yepTeamUsername, inRealm: realm)
+
+                if yepTeam == nil {
+                    let newYepTeam = User()
+                    newYepTeam.userID = discoveredUser.id
+                    newYepTeam.username = discoveredUser.username ?? ""
+                    newYepTeam.nickname = discoveredUser.nickname
+                    newYepTeam.introduction = discoveredUser.introduction ?? ""
+                    newYepTeam.avatarURLString = discoveredUser.avatarURLString
+                    newYepTeam.badge = discoveredUser.badge ?? ""
+
+                    newYepTeam.friendState = UserFriendState.Yep.rawValue
+
+                    let _ = try? realm.write {
+                        realm.add(newYepTeam)
+                    }
+
+                    yepTeam = newYepTeam
+                }
+
+                return yepTeam
+            }
+
             if let githubToken = tokensOfSocialAccounts.githubToken {
 
                 githubReposWithToken(githubToken, failureHandler: nil, completion: { githubRepos in

                        return
                    }

                    let yepTeamUsername = "yep_team"

                    if let yepTeam = userWithUsername(yepTeamUsername, inRealm: realm) {
                        syncSocialWorkPiece(SocialWorkPiece.Dribbble(latestShot), yepTeam: yepTeam, inRealm: realm)


                                    return
                                }

                                if let yepTeam = yepTeamFromDiscoveredUser(discoveredUser, inRealm: realm) {
                                    syncSocialWorkPiece(SocialWorkPiece.Github(latestRepo), yepTeam: yepTeam, inRealm: realm)
                                }
                            }
