[client] Arm the account prompt only from the wait that owns the flow

This commit is contained in:
Zoltán Papp
2026-08-27 13:06:21 +02:00
parent edf5b0b2f2
commit f8681347dd
+1 -1
View File
@@ -1002,8 +1002,8 @@ func (s *Server) WaitSSOLogin(callerCtx context.Context, msg *proto.WaitSSOLogin
s.mutex.Lock()
if s.oauthAuthFlow.flow == flow {
s.oauthAuthFlow = oauthAuthFlow{}
s.forceAccountPrompt = true
}
s.forceAccountPrompt = true
s.mutex.Unlock()
state.Set(internal.StatusNeedsLogin)
return nil, gstatus.Errorf(codes.FailedPrecondition, "the login used a different account than this profile; connect again to choose the account")