Broaden session cookie refresh for /models/ routes
Browse files- src/hooks.server.ts +1 -4
src/hooks.server.ts
CHANGED
|
@@ -163,10 +163,7 @@ export const handle: Handle = async ({ event, resolve }) => {
|
|
| 163 |
!event.url.pathname.startsWith(`${base}/healthcheck`) &&
|
| 164 |
!event.url.pathname.startsWith(`${base}/r/`) &&
|
| 165 |
!event.url.pathname.startsWith(`${base}/conversation/`) &&
|
| 166 |
-
!(
|
| 167 |
-
event.url.pathname.startsWith(`${base}/models/`) &&
|
| 168 |
-
event.url.pathname.endsWith("/thumbnail.png")
|
| 169 |
-
) &&
|
| 170 |
!event.url.pathname.startsWith(`${base}/api`)
|
| 171 |
) {
|
| 172 |
refreshSessionCookie(event.cookies, auth.secretSessionId);
|
|
|
|
| 163 |
!event.url.pathname.startsWith(`${base}/healthcheck`) &&
|
| 164 |
!event.url.pathname.startsWith(`${base}/r/`) &&
|
| 165 |
!event.url.pathname.startsWith(`${base}/conversation/`) &&
|
| 166 |
+
!event.url.pathname.startsWith(`${base}/models/`) &&
|
|
|
|
|
|
|
|
|
|
| 167 |
!event.url.pathname.startsWith(`${base}/api`)
|
| 168 |
) {
|
| 169 |
refreshSessionCookie(event.cookies, auth.secretSessionId);
|