Perf/web app authrozation (#22524)
This commit is contained in:
parent
a3ced1b5a6
commit
a324d3942e
35 changed files with 592 additions and 441 deletions
|
|
@ -413,7 +413,7 @@ export const ssePost = async (
|
|||
|
||||
if (data.code === 'unauthorized') {
|
||||
removeAccessToken()
|
||||
globalThis.location.reload()
|
||||
requiredWebSSOLogin()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
@ -507,7 +507,7 @@ export const request = async<T>(url: string, options = {}, otherOptions?: IOther
|
|||
} = otherOptionsForBaseFetch
|
||||
if (isPublicAPI && code === 'unauthorized') {
|
||||
removeAccessToken()
|
||||
globalThis.location.reload()
|
||||
requiredWebSSOLogin()
|
||||
return Promise.reject(err)
|
||||
}
|
||||
if (code === 'init_validate_failed' && IS_CE_EDITION && !silent) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue