mweibel / connect-session-sequelize

Sequelize SessionStore for Express/Connect
212 stars 72 forks source link

TypeError: sessionStore.destroy is not a function #101

Closed pacmac closed 4 years ago

pacmac commented 4 years ago

I have just setup using sqlite, and found an issue related to this error:

TypeError: sessionStore.destroy is not a function

However after applying this fix, I still get the same error:

  var sequelize = new Sequelize(
    "database",
    "username",
    "password", {
      "dialect"   : "sqlite",
      "storage"   : ":memory:"
    },
    {
      query:{
        raw:false
      }
    }
  );

How can I solve it ?

mweibel commented 4 years ago

how would I know? please add more info. Impossible to help you with this amount of information. Best is a reproduction case in a public github repo.

pacmac commented 4 years ago

OK, sessionStore.destroy() appears to be a method used in the default express sessionStore.

I have worked around it

Thanks anyway.