mirror of
https://github.com/github/awesome-copilot.git
synced 2026-08-13 12:49:49 +00:00
Improve connector reload authentication UX (#2370)
Keep Azure tokens in memory and preserve linked namespace context across extension reloads. Co-authored-by: Alex Yang (DevDiv) <yangalex@microsoft.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -561,7 +561,9 @@ async function handleRequest(req, res, instanceId, serverEntry) {
|
||||
} catch (err) {
|
||||
res.setHeader("Content-Type", "text/html; charset=utf-8");
|
||||
if (isAuthenticationRequiredError(err)) {
|
||||
res.end(renderSetupHtml([], "", serverEntry.token));
|
||||
res.end(renderSetupHtml([], "", serverEntry.token, {
|
||||
linkedNamespace: config.gatewayName,
|
||||
}));
|
||||
} else {
|
||||
res.end(renderSetupHtml(
|
||||
[],
|
||||
|
||||
Reference in New Issue
Block a user