Skip to content

Commit

Permalink
Update to include another non auth'd https code
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Nov 30, 2023
1 parent b5fcab8 commit c493f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/security/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const secureFetch = async (url, options) => {

const response = await fetch(url, options);

if (response.status === 401) {
if (response.status === 401 || response.status === 403) {
window.open(`${import.meta.env.VITE_MACROSTRAT_INGEST_API}/security/login`, '_blank').focus();
throw {name: "UnauthorizedError", message: "User is not logged in"}
}
Expand Down

0 comments on commit c493f5a

Please sign in to comment.