emmett-framework / emmett

The web framework for inventors
Other
1.03k stars 70 forks source link

RemovedInNextVersionWarning: legacy encryption_mode is deprecated, use modern instead. SessionManager.cookies('myverysecretkey'), #416

Closed max-bertinetti closed 2 years ago

max-bertinetti commented 2 years ago
#: pipeline
app.pipeline = [
    SessionManager.cookies('myverysecretkey'),
    db.pipe,
    auth.pipe
]

Hi @gi0baro. This is the offending code. What should I do to suppress the warning?

gi0baro commented 2 years ago

@eclecticlly you need to install Emmett with crypto extras and set the encryption_mode parameter of SessionManager.cookies to modern.

Details available in docs, see: