[client] Route expired-session dialog to full re-login instead of extend

After session expiry the engine is torn down permanently (PermissionDenied
-> runCancel), so the extend flow can never succeed and the SSO round trip
was wasted before failing with "engine is not initialised". Route the
expired dialog's action to the trigger-login flow that rebuilds the client,
and fail RequestExtendAuthSession before opening the browser when the
engine is already gone.
This commit is contained in:
Zoltán Papp
2026-08-04 13:08:13 +02:00
parent bc7a15ab71
commit 18b1cd443e
2 changed files with 20 additions and 2 deletions
+3
View File
@@ -1798,6 +1798,9 @@ func (s *Server) RequestExtendAuthSession(
if connectClient == nil {
return nil, gstatus.Errorf(codes.FailedPrecondition, "client is not running")
}
if connectClient.Engine() == nil {
return nil, gstatus.Errorf(codes.FailedPrecondition, "session can no longer be extended, log in again to reconnect")
}
hint := ""
if msg.Hint != nil {