Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8808129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:32:38+00:00 2026-06-14T02:32:38+00:00

In the findOrCreateUser function, I’m returning a promise , that I then fulfill with

  • 0

In the findOrCreateUser function, I’m returning a promise, that I then fulfill with a user document from mongoDB.

Then it gives this error You are trying to access the attribute/method configured by findUserById, which you did not configure

I used this guy’s tutorial http://nodetuts.com/tutorials/26-starting-with-everyauth.html#video He didn’t do any of that. Why does it even need a findUserById function? I’m returning to it the entire document, not just an id.

So, yeah, how do I correct this? I thought after you returned your promise, everyauth was good to go.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:32:39+00:00Added an answer on June 14, 2026 at 2:32 am

    not sure if you have got around this or not, but I found adding in the following before you start telling it the api id’s and secrets sorted it for me:

    everyauth.everymodule
      .findUserById( function (id, callback) {
        callback(null, usersById[id]);
      });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to save a user that authenticated through GitHub into mongodb. I'm using
I did read manuals about access to current user via everyauth. It's say, that
I try to obtain Express sessionID on .findOrCreateUser of Everyauth. Backgroud of this question:
Using everyauth, the first time a user login, a profile is added to my
Background : I am using nginx as a reverse proxy to my express server
I am attempting to retrieve the google email address when making an OAuth2.0 call
My code is as follows var express = require('express'), everyauth = require('everyauth'), util =
I am trying to use everyauth within express to authenticate users to a website
Using node.js / expressjs / mongoose / mongoose-auth / everyauth. All versions are up
I am a newbie of node.js and everyauth. While I just playing around everyauth

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.