Giter Site home page Giter Site logo

koa-sqlite3-session's Introduction

Hi there πŸ‘‹

github stats

koa-sqlite3-session's People

Contributors

chichou avatar dependabot[bot] avatar ersoma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ersoma

koa-sqlite3-session's Issues

ttl should be in ms

The documentation for koa-generic-session shows milliseconds (ms) are supposed to be used, instead of seconds. For example, this should have a TTL of 1 day, but SQLite3Store gives it a TTL of 1,000 days:

app.use(session({
    store: new SQLite3Store('filename.db'),
    ttl: 86400000         // ms
});

It works great if you pass in seconds:

app.use(session({
    store: new SQLite3Store('filename.db'),
    ttl: 86400
});

One nice thing about koa-generic-session is that you can swap out one session provider for another. For example you could use SQLite for sessions when doing local development, and Redis on a production server. But with this difference you can’t share the same config between koa-redis and koa-sqlite3-session.

Bump dependency: SQLite3 is now in version 5.x

Could you please bumb the dependency to SQLite3 to the now current version 5.x?

Using SQLite3 installs version 5.
And requiring Koa-SQlite-Session tries to build SQLite version 4.x which requires build tools and therefor often fails on the machines of my students.
Which is quite frustrating for them (and me).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.