       google: ->
 
         { client_id } = KONFIG.google
+        JSession = require './session'
         JSession.one { clientId: client.sessionToken }, (err, session) ->
           return callback err  if err
           state = session._id

    if provider is 'twitter'
      @saveTokensAndReturnUrl client, 'twitter', callback
    else
      getUrlFor provider, redirectUri, options, callback


  @prependGroupName = (url, groupName) ->

oauth       = require 'oauth'
parser      = require 'url'
KodingError = require '../error'


module.exports = class OAuth extends bongo.Base

