Skip to content
This repository was archived by the owner on Feb 3, 2020. It is now read-only.
This repository was archived by the owner on Feb 3, 2020. It is now read-only.

if secret changes, server throws 503 #16

@pomidor24

Description

@pomidor24

If I change secret, module is not able to handle this and just simply throws.

It would be great to have ability to pass errorCallback to it:

app.use(sessions({
    secret: 'hohoho', 
    session_key: 'FactityBets',
    path: '/',
    timeout: 1000 * 60 * 60 * 24 * 3 // 3 days,
    onError: callback(err, req, res) {
        // code to remove cookie
    }
}));

or as an alternative removeCookieOnError : true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions