mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-10-06 13:35:51 +00:00
11 lines
248 B
TypeScript
11 lines
248 B
TypeScript
![]() |
import authorizationUtil from '@/utils/authorizationUtil';
|
||
|
import { useState } from 'react';
|
||
|
|
||
|
export const useAuth = () => {
|
||
|
const [isLogin, setIsLogin] = useState(
|
||
|
() => !!authorizationUtil.getAuthorization(),
|
||
|
);
|
||
|
|
||
|
return { isLogin };
|
||
|
};
|