mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-23 14:17:06 +00:00
* fix(auth): sign-in relays a token set between waits
* fix(auth): sign-in relay skips another app's stored token and survives a failed store
* fix(auth): sign-in relay always clears the stored copy and logs only the error message
* fix(auth): the sign-in relay keeps only signed app tokens, per app, and a subscribed wait answers without Redis
/login/set stores a token only when this server signed it for an app, under a
key that includes the app, so a later set for another app or an unsigned value
leaves a pending token in place. /login/wait takes the stored copy once and
falls back to listening when Redis cannot be read. A token that arrives by
event is delivered to every subscribed wait for that app; the stored copy is
then removed best-effort, and left in place when the wait's client has gone.
A relayed token for another app no longer ends the wait. The event payload is
back to { authtoken }.
* chore(events): event types file matches main again