[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:
@@ -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}`);
|
||||
|
Reference in New Issue
Block a user