mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
refactor(core): remove default page rules (#5325)
This commit is contained in:
parent
09637a1a57
commit
2260eb01cc
2 changed files with 2 additions and 6 deletions
|
@ -67,7 +67,7 @@ export const mockProtectedApplication: Omit<Application, 'protectedAppMetadata'>
|
||||||
host: 'mock.protected.dev',
|
host: 'mock.protected.dev',
|
||||||
origin: 'https://my-blog.com',
|
origin: 'https://my-blog.com',
|
||||||
sessionDuration: 1_209_600,
|
sessionDuration: 1_209_600,
|
||||||
pageRules: [{ path: '^/' }],
|
pageRules: [],
|
||||||
},
|
},
|
||||||
isThirdParty: false,
|
isThirdParty: false,
|
||||||
createdAt: 1_645_334_775_356,
|
createdAt: 1_645_334_775_356,
|
||||||
|
|
|
@ -3,8 +3,4 @@ import { type ProtectedAppMetadata } from '@logto/schemas';
|
||||||
export const defaultProtectedAppSessionDuration: ProtectedAppMetadata['sessionDuration'] =
|
export const defaultProtectedAppSessionDuration: ProtectedAppMetadata['sessionDuration'] =
|
||||||
60 * 60 * 24 * 14; // 14 days
|
60 * 60 * 24 * 14; // 14 days
|
||||||
|
|
||||||
export const defaultProtectedAppPageRules: ProtectedAppMetadata['pageRules'] = [
|
export const defaultProtectedAppPageRules: ProtectedAppMetadata['pageRules'] = [];
|
||||||
{
|
|
||||||
path: '^/', // Match all paths
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
Loading…
Reference in a new issue