[MM-43656] Flush cookies to disk on finishing custom login (#2076)

* [MM-43656] Flush cookies to disk on finishing custom login

* Fixed a test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Devin Binnie
2023-02-01 14:32:22 -05:00
committed by GitHub
parent d5838a4fa8
commit f62944c5a4
3 changed files with 9 additions and 2 deletions

View File

@@ -212,7 +212,7 @@ export function resizeScreen(browserWindow: BrowserWindow) {
handle();
}
function flushCookiesStore(session: Session) {
export function flushCookiesStore(session: Session) {
log.debug('Utils.flushCookiesStore');
session.cookies.flushStore().catch((err) => {
log.error(`There was a problem flushing cookies:\n${err}`);