[Auth] Warn insecure context on login (#3663)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-04-27 22:04:19 -04:00
committed by GitHub
parent 96d954ceb2
commit b1a98437e4
9 changed files with 13 additions and 8 deletions

View File

@@ -1190,13 +1190,6 @@ export class ComfyApp {
let comfyOrgAuthToken =
(await useFirebaseAuthStore().getIdToken()) ?? undefined
// Check if we're in a secure context before using the auth token
if (comfyOrgAuthToken && !window.isSecureContext) {
comfyOrgAuthToken = undefined
console.warn(
'Auth token not used: Not in a secure context. Authentication requires a secure connection.'
)
}
try {
while (this.#queueItems.length) {