@ofidj/generator-fidj 3.18.0 → 3.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -167,7 +167,10 @@ async function request(path: string, method = "GET", data?: unknown) {
|
|
|
167
167
|
});
|
|
168
168
|
const result = await response.json();
|
|
169
169
|
if (!response.ok) {
|
|
170
|
-
|
|
170
|
+
// Only a 401 means the session is gone; a 403 refuses one action to
|
|
171
|
+
// somebody still signed in, and signing them out for it ended the console's
|
|
172
|
+
// session on the first forbidden request.
|
|
173
|
+
if (response.status === 401) {
|
|
171
174
|
signedIn = false;
|
|
172
175
|
await sdk.logout(true);
|
|
173
176
|
}
|