mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fix: improve asset handling, logging, and ui conditions
Refactored asset handling to support multiple CSS entries and fixed context handling in authenticator when executed through mcp. Adjusted UI readonly conditions.
This commit is contained in:
@@ -278,7 +278,9 @@ export class Authenticator<
|
||||
}
|
||||
|
||||
return payload as any;
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
$console.debug("Authenticator jwt verify error", String(e));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -396,8 +398,9 @@ export class Authenticator<
|
||||
if (headers.has("Authorization")) {
|
||||
const bearerHeader = String(headers.get("Authorization"));
|
||||
token = bearerHeader.replace("Bearer ", "");
|
||||
} else if (is_context) {
|
||||
token = await this.getAuthCookie(c as Context);
|
||||
} else {
|
||||
const context = is_context ? (c as Context) : ({ req: { raw: { headers } } } as Context);
|
||||
token = await this.getAuthCookie(context);
|
||||
}
|
||||
|
||||
if (token) {
|
||||
|
||||
Reference in New Issue
Block a user