mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 13:57:02 +08:00
feat(server): auto refresh session (#6613)
This commit is contained in:
@@ -240,6 +240,13 @@ export interface AFFiNEConfig {
|
||||
* @default 15 days
|
||||
*/
|
||||
ttl: number;
|
||||
|
||||
/**
|
||||
* Application auth time to refresh in seconds
|
||||
*
|
||||
* @default 7 days
|
||||
*/
|
||||
ttr: number;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -153,6 +153,7 @@ export const getDefaultAFFiNEConfig: () => AFFiNEConfig = () => {
|
||||
},
|
||||
session: {
|
||||
ttl: 15 * ONE_DAY_IN_SEC,
|
||||
ttr: 7 * ONE_DAY_IN_SEC,
|
||||
},
|
||||
accessToken: {
|
||||
ttl: 7 * ONE_DAY_IN_SEC,
|
||||
|
||||
Reference in New Issue
Block a user