HomePhabricator
Diffusion Comm 397b4542fa7b

[keyserver] Replace extendCookieLifespan with updateCookie

Description

[keyserver] Replace extendCookieLifespan with updateCookie

Summary:
In the next diff this function will be used to replace a bcrypt hash with a sha256 one. I want to do that in this function to avoid introducing any new SQL queries. extendCookieLifespan already runs very frequently, so it's a good place to make this change to ensure that we quickly migrate to sha256 hashes.

Ahead of that change, this diff renames the function and updates it to take a full Viewer parameter.

Depends on D9546

Test Plan: Flow

Reviewers: atul, tomek

Reviewed By: tomek

Subscribers: wyilio

Differential Revision: https://phab.comm.dev/D9548

Details

Provenance
ashoatAuthored on Oct 19 2023, 2:00 PM
Reviewer
tomek
Differential Revision
D9548: [keyserver] Replace extendCookieLifespan with updateCookie
Parents
rCOMM12d02949bb4b: [keyserver] Stop using bcrypt for session validation in new cookies
Branches
Unknown
Tags
Unknown