Copilot commented on code in PR #14958:
URL: https://github.com/apache/gravitino/pull/14958#discussion_r4559501393
##########
web-v2/web/src/lib/api/auth/index.js:
##########
@@ -21,9 +21,12 @@ import { defHttp } from '@/lib/utils/axios'
import { ContentTypeEnum } from '@/lib/enums/httpEnum'
export const getAuthConfigsApi = () => {
- return defHttp.get({
- url: '/configs'
- })
+ return defHttp.get(
+ {
+ url: '/configs'
+ },
+ { withToken: false }
Review Comment:
With local and session storage cleared, the request interceptor already
omits Authorization, so `withToken: false` does not change the bootstrap
request described in #14957. If `/configs` returns 401, the unchanged response
interceptor still redirects before the auth type is populated. Identify and fix
the source of that 401, then verify that a fresh-storage load reaches
`BasicLogin`, rather than only checking for an absent Authorization header.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]