Skip to content

Commit

Permalink
Handle 401 error code during login
Browse files Browse the repository at this point in the history
  • Loading branch information
vin0401 committed Dec 11, 2024
1 parent 205a4ed commit 336d0d9
Show file tree
Hide file tree
Showing 51 changed files with 1,969 additions and 4,915 deletions.
6 changes: 5 additions & 1 deletion assets/js/src/core/modules/app/app-loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ export const AppLoader = (props: IAppLoaderProps): React.JSX.Element => {

userFetcher
.then(({ data, isSuccess, isError, error }) => {
isError && trackError(new ApiError(error))
// @todo check handling of 401
const _error = error as unknown as any
if (_error?.status !== 401) {
isError && trackError(new ApiError(error))
}

if (isSuccess && data !== undefined) {
dispatch(setUser(data))
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/21e0222a-7930-4d3f-ae7e-164bde794848/main.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/2bf1074e-e6b5-47e3-8da6-0fabfefc0e1c/main.js

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 14 additions & 0 deletions public/build/7c4ddf50-fe9d-4fd7-bd07-41121702af10/entrypoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"entrypoints": {
"main": {
"css": [
"http://localhost:3030/build/7c4ddf50-fe9d-4fd7-bd07-41121702af10/vendors-node_modules_dnd-kit_modifiers_dist_modifiers_esm_js-node_modules_dnd-kit_sortable_di-41eabe.css",
"http://localhost:3030/build/7c4ddf50-fe9d-4fd7-bd07-41121702af10/main.css"
],
"js": [
"http://localhost:3030/build/7c4ddf50-fe9d-4fd7-bd07-41121702af10/vendors-node_modules_dnd-kit_modifiers_dist_modifiers_esm_js-node_modules_dnd-kit_sortable_di-41eabe.js",
"http://localhost:3030/build/7c4ddf50-fe9d-4fd7-bd07-41121702af10/main.js"
]
}
}
}
1,950 changes: 1,950 additions & 0 deletions public/build/7c4ddf50-fe9d-4fd7-bd07-41121702af10/manifest.json

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/9ba69a66-25a4-4a71-b761-afd8fb87b112/vendor.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/cf4b55d1-2d21-4f05-9274-165466e98a7d/vendor.js

This file was deleted.

Loading

0 comments on commit 336d0d9

Please sign in to comment.