OAuth2Clientは非同期的にログイン処理を行い、ログイン成功時にはNotificationの形で成功を伝えます。
この際、ログインに成功したアカウントをNotificationで利用するためには、Notification.userInfoのNXOAuth2AccountStoreNewAccountUserInfoKeyを参照します。
notificate.addObserverForName(NXOAuth2AccountStoreAccountsDidChangeNotification
, object: NXOAuth2AccountStore.sharedStore(), queue: nil, usingBlock: {
(notification: NSNotification!) in
// Authorization Succeeded
if let userInfo = notification.userInfo {
let account = userInfo[NXOAuth2AccountStoreNewAccountUserInfoKey] as NXOAuth2Account
}
})


