type error:cannot call app id of undefined everyauth
===

i am getting this error when starting

                  info  - socket.io started
                  TypeError: Cannot call method 'appId' of undefined
                  at Object.<anonymous> (E:\nodejs\blogab\server.coffee:48:23)
                  at Object.<anonymous> (E:\nodejs\blogab\server.coffee:133:4)
                  at Module._compile (module.js:449:26)
                  at Object.exports.run (~\coffee-script\coffee-  script.js:79:25)

              at compileScript (lib\coffee-script\command.js:175:29)
               at fs.stat.notSources.(anonymous function) (lib\coffee-scri\command.js:150:18)
               at fs.readFile (fs.js:176:14)
               at Object.oncomplete (fs.js:297:15)

server.coffee 

                       Post = require './models/Post'
                      comment = require './models/comment'
                      conf = require './conf'
                      express = require("express")
                      everyauth = require("everyauth")
                       should = require("should")
                       mongoose = require("mongoose")
                      io = require("socket.io").listen(80)
                      everyauth.debug = true
                      addUser = (source, sourceUser) ->
                      user = undefined
                      if arguments_.length is 1 # password-based
                      user = sourceUser = source
                      user.id = ++nextUserId
                      return usersById[nextUserId] = user
                      else # non-password-based
                      user = usersById[++nextUserId] = id: nextUserId
                     user[source] = sourceUser
                        user
                      usersById = {}
                      nextUserId = 0
                      usersByDcId = {}

                      everyauth.everymodule.findUserById (id, callback) ->
                      callback null, usersById[id]


                      everyauth.dailycred.appId(conf.dc.appId).findOrCreateUser((session, accessToken, accessTokenExtra, dcUserMetadata) ->
  

    usersByDcId[dcUserMetadata.id] or (usersByDcId[dcUserMetadata.id] = addUser("dailycred", dcUserMetadata))
    ).redirectPath "/admin"
    
    everyauth.middleware()
    app = express.createServer(express.bodyParser(), express.methodOverride(), express["static"](__dirname + "/public"), express.cookieParser(), express.session(secret: "htuayreve"))
    app.configure ->
      app.use app.router
      app.set "view engine", "jade"
      
    app.configure "development", ->
      mongoose.connect 'mongodb://localhost/blogab-dev'
      app.use express.errorHandler(
        dumpExceptions: true
        showStack: true
      )
    
    app.configure "production", ->
      mongoose.connect 'mongodb://localhost/blogab-prod'
      app.use express.errorHandler()
    
    app.get "/", (req, res) ->
        Post.find {}, (err, posts) ->
          res.render "templates/simpler/index",
            title: "blogab"
            posts: posts
    
    app.get "/admin", (req, res) ->
      res.render "bcore/admin",
        title: "Blogab-admin"
        users: JSON.stringify(usersByLogin, null, 2)
    
    app.get "/login", (req, res) ->
      res.render "bcore/login", 
        title: "login"
        users: JSON.stringify(usersByLogin, null, 2)
    
    app.get "/post/:id", (req, res) ->
      Post.findById req.params.id, (err, post) ->
          res.render 'templates/simpler/post', post: post, title: post.title
    
     app.get "/help", (req, res) ->
          res.render 'bcore/help',  
          title: blogab-help     
    
    app.get "/admin/post/new", (req, res) ->
      res.render "bcore/content/post_new",
        title: "Blogab-newpost"
        users: JSON.stringify(usersByLogin, null, 2)
      
    app.post '/admin/post/new', (req, res, next) ->	 
         new Post(req.body.post).save ->
          res.redirect "/"
    
    
    everyauth.helpExpress app
    app.listen 1224, ->
      console.log "blogab is  running on port %d in %s mode",app.address().port, app.settings.env;


conf.coffee


    module.exports = dc:
      appId: "ff"
      appSecret: "g"

i have removed the everyauth password and added everyauth daily creed
conf.coffee has app id and server.coffee i have added app router and everyauth middleware 
i have included conf.coffee  and everyauth helpers

