fix: retry on authentication failure with credential refresh (#7812)
This commit is contained in:
+15
-2
@@ -174,7 +174,13 @@ const SettingsRoute = ({ activeSessionId }: { activeSessionId?: string }) => {
|
||||
viewOptions.section = sectionFromUrl;
|
||||
}
|
||||
|
||||
return <SettingsView onClose={() => navigate('/')} setView={setView} viewOptions={{...viewOptions, sessionId: activeSessionId}} />;
|
||||
return (
|
||||
<SettingsView
|
||||
onClose={() => navigate('/')}
|
||||
setView={setView}
|
||||
viewOptions={{ ...viewOptions, sessionId: activeSessionId }}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
const SessionsRoute = () => {
|
||||
@@ -667,7 +673,14 @@ export function AppInner() {
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<Route path="settings" element={<SettingsRoute activeSessionId={activeSessions[activeSessions.length - 1]?.sessionId} />} />
|
||||
<Route
|
||||
path="settings"
|
||||
element={
|
||||
<SettingsRoute
|
||||
activeSessionId={activeSessions[activeSessions.length - 1]?.sessionId}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="extensions"
|
||||
element={
|
||||
|
||||
Reference in New Issue
Block a user