tweak: make auth UI not required for now (#1283)

This commit is contained in:
Neal Shah
2025-05-26 17:36:28 -04:00
committed by GitHub
parent 1024fe28c3
commit bcbf852f5c
@@ -2,9 +2,10 @@ import EventListener from "../../lib/EventListener.js";
import { errors } from "./parsers.js";
import { PWispHandler } from "./PWispHandler.js";
const texten = new TextEncoder();
const requireAuth = false; // for initial launch
export let wispInfo = {
server: "wss://puter.cafe/",
server: "wss://puter.cafe/", // Unused currently
handler: undefined
};
@@ -15,7 +16,7 @@ export class PSocket extends EventListener {
super(["data", "drain", "open", "error", "close", "tlsdata", "tlsopen", "tlsclose"]);
(async () => {
if(!puter.authToken && puter.env === 'web'){
if(!puter.authToken && puter.env === 'web' && requireAuth){
try{
await puter.ui.authenticateWithPuter();