       # replace token with session.clientid
       sessionToken = clientId
 
+      # setting client data
       client =
         sessionToken : sessionToken
         context      : context


generateDummyClient = (context, callback) ->

  # sending null session token to generate a new client
  JUser.authenticateClient null, (err, res = {}) ->

    return callback err  if err

    { account, session } = res
    context ?= { group: session?.groupName ? 'koding' }

    if account instanceof JAccount

_        = require 'underscore'
hat      = require 'hat'
JAccount = require './lib/social/models/account'
JSession = require './lib/social/models/session'


# returns 20 characters by default
