Why does everyauth depend on session?

48 views Asked by At

I can authenticate with facebook and everyauth but it doesn't work without the session module plugged in. The error message is...

Step getSession of facebook is promising: session ; however, the step returns nothing. Fix the step by returning the expected values OR by returning a Promise that promises said values.

I don't want my app to use session.

Is it using it to store the user id of the authenticated user? If so, surely it could just put it in a cookie and encrypt it.

1

There are 1 answers

1
Julian H. Lam On

You can use cookie-session for cookie-based session if you're not willing to use express' session middleware.