hotfix: cookies may not be added to static assets

This commit is contained in:
dswbx committed 2024-11-28 18:07:29 +01:00
1 parent 33a820aa11
commit 509d6826f0
3 files changed
+13 -5

No files matched your search

+1 -1
View File
@@ -228,9 +228,9 @@ export class Authenticator<Strategies extends Record<string, Strategy> = Record<
async requestCookieRefresh(c: Context) {
if (this.config.cookie.renew) {
console.log("renewing cookie", c.req.url);
const token = await this.getAuthCookie(c);
if (token) {
console.log("renewing cookie", c.req.url);
await this.setAuthCookie(c, token);
}
}