I am using passportjs for user authentication, it includes both local authentication and oauth authentication, the app is working fine when cookies are enabled, but when user disable the cookies it doesn't authenticate the user, i am using session based authentication.
Session-based authentication like
session.id. Unless you have another way to store the
session.id on the client-side and pass that information back to your session handler, you won't be able to use passport's session-based authentication.
You can also look at this question here, which goes into more depth.