0
Fork 0
mirror of https://github.com/oblien/openship.git synced 2026-11-16 06:57:12 +00:00
openship/apps/api/test/modules/auth
Saim Shafique 9dd4bb4e79
fix(auth): preserve the Desktop installation identity across updates (#1617)
* fix(auth): keep the signed-in user when the desktop bootstrap mints a session

After an auto-update wipes the browser cookie store, GET /api/auth/get-session
falls through to the zero-auth bootstrap, which minted a fresh session for the
Local User even when the operator's own sessions were still valid. The app
then landed on an empty Local workspace with no way back to the real one.

The bootstrap now mints for the owner of the most recently created unexpired
session when one belongs to another user, and falls back to the Local User
exactly as before when there is none.

Fixes #1612

Co-authored-by: Saim Shafique <128062316+sx4im@users.noreply.github.com>

* fix(auth): persist the authenticated Desktop installation identity

* fix(auth): preserve verified Desktop sessions during bootstrap

---------

Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
History 2026-11-06 17:11:58 +02:00
..
get-session-bootstrap.test.ts fix(auth): preserve the Desktop installation identity across updates (#1617) 2026-11-06 17:11:58 +02:00
invitation-preview.test.ts feat(instance): open team invitations directly in Desktop 2026-10-08 14:15:53 +03:00
invitation-session.test.ts feat(instance): simplify Desktop connections and team invitations 2026-10-08 04:28:44 +03:00
invitation-signup.controller.test.ts ship sdk, intial scale panel 2026-09-14 01:34:59 +03:00