mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-15 05:04:27 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user