   verifyToken = (token, options, callback) ->
     Q.ninvoke(jwt, 'verify', token, config.jwt.secret, options).nodeify callback
 
-  _signUpPromise = (userData, uuid) ->
-    if Q.isPromiseAlike api.AuthImpl.signUp
-      api.AuthImpl.signUp userData, uuid
-    else
-      Q.ninvoke api.AuthImpl, 'signUp', userData, uuid
-
   signUp = (userData, passwordField, needVerify, callback) ->
     deferred = Q.defer()
 

      ]
    .spread (user, match) ->
      if match
        return _jwtPayloadPromise user

      throw new UnauthorizedError(
        'Invalid credentials', 'invalid_credentials')

        new ImplementationError("no 'api.AuthImpl.findUser' and or
          'api.AuthImpl.jwtPayload' implementation.", 'signin_impl_error'))

    _hninvoke(api.AuthImpl, 'findUser', login)
    .then (user) ->
      Q.all [
        Q(user)
