Fix: simplify _load_user (#14154)

### What problem does this PR solve?

Simplify _load_user, remove unused fallback.

### Type of change

- [x] Refactoring
This commit is contained in:
Lynn
2026-04-16 18:47:43 +08:00
committed by GitHub
parent 4cf4d444d2
commit 655dd2f8c6
2 changed files with 35 additions and 49 deletions

View File

@@ -48,11 +48,6 @@ const storage = {
};
export const getAuthorization = () => {
const jwtAuth = getSearchValue('jwt_auth');
if (jwtAuth) {
return jwtAuth;
}
const auth = getSearchValue('auth');
const authorization = auth
? 'Bearer ' + auth