mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 17:45:18 -05:00
Enable Meteor 3 native HttpOnly resume authentication with in-memory client credentials, remove the JavaScript cookie and local-storage synchronization, and harden header-login cookies. Thanks to binary-lover and xet7 !
11 lines
287 B
JavaScript
11 lines
287 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
import { Accounts } from 'meteor/accounts-base';
|
|
|
|
Meteor.startup(() => {
|
|
Accounts.config({
|
|
loginExpirationInDays: process.env.ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS || 90,
|
|
clientStorage: 'none',
|
|
useHttpOnlyCookies: true,
|
|
});
|
|
});
|