auth: published plugin hard-codes isProduction, sessions drop after ~5 min on localhost
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 57/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- authentication, backend
Línea de trabajo
Start by locating the published auth plugin bundle and the source configuration that sets isProduction, then trace how bos dev supplies the runtime environment or base URL. Reproduce the reported sign-in on localhost and check session behavior after the five-minute cookie cache expires. Done when local HTTP sessions remain usable and production still uses secure cookies and cookie caching.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The published auth plugin bundle has isProduction hard-coded to true (in the Zephyr bundle: authConfig: { ..., isProduction: !0 }). That turns on better-auth session.cookieCache with maxAge: 300 and secure cookies, including under bos dev on http://localhost.
What I see locally:
- Sign in with Meteor on http://localhost → works.
- About 5 minutes later,
get-sessionandget-session?disableCookieCache=trueboth return null, and authed RPCs return 401. - The session row in the local auth pglite DB is still valid (7-day expiry), so the session itself isn't expired; the session token cookie just isn't usable on plain http once the cache cookie expires.
Repro:
bos devin a child app (seen in nearbuilders.org), open http://localhost:3000.- Sign in.
- Wait ~5 minutes, reload → signed out; authed calls 401.
Suggested fix: derive isProduction at runtime instead of at build time, e.g. from NODE_ENV or from the base URL protocol (https: → production cookie settings). Keep secure cookies and the cookie cache on in production.
This might be related to the sign-in loop some people have seen when signing in for an org wallet with Meteor. I haven't confirmed that.
- Lenguaje dominante
- TypeScript
- Estrellas
- 5
- Forks
- 3
- Merge medio
- 9 h 48 min
- PR fusionados (30 d)
- 152
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NEARBuilders/everything-dev
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
NEARBuilders/everything-dev#628 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NEARBuilders/everything-dev#400 ·
Los mantenedores suelen responder en 1 día
-
Onboarding at events: translate /onboard, use "community" wording, and handle failed invite lookupsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
NEARBuilders/everything-dev#653 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
NEARBuilders/everything-dev#652 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
NEARBuilders/everything-dev#651 ·
Los mantenedores suelen responder en 1 día
Todos los issues de NEARBuilders/everything-dev
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
vekexasia/pi-extensible-workflows#374 ·
Los mantenedores suelen responder en 2 días
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
help wanted linux
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
GiuseppeBellamacina/downtime#19 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
scaleway/ultraviolet#7089 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Get-Concord-AI/concord-mcp#296 ·
Los mantenedores suelen responder en 1 día