Skip to content

Commit

Permalink
integrate proper status code for unauthorized
Browse files Browse the repository at this point in the history
  • Loading branch information
saifullah-talukder committed Jul 2, 2024
1 parent 12df459 commit 22746f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/actions/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function curieoFetch(reqInfo: RequestInfo, init?: RequestInit): Pro
const url: URL = curieoApiUrl(reqInfo)
const response = await fetch(url, init)

if (response.status === 405) {
if (response.status === 401) {
await signOut()
}

Expand Down

0 comments on commit 22746f3

Please sign in to comment.