|
|
@@ -27,7 +27,7 @@ const ThemeContext = createContext<ThemeContextType | null>(null);
|
|
|
// 认证提供者组件
|
|
|
export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
|
|
|
const [user, setUser] = useState<User | null>(null);
|
|
|
- const [token, setToken] = useState<string | null>(getLocalStorageWithExpiry('token'));
|
|
|
+ const [token, setToken] = useState<string | null>(getLocalStorageWithExpiry('mobile_token'));
|
|
|
const [isAuthenticated, setIsAuthenticated] = useState(false);
|
|
|
const queryClient = useQueryClient();
|
|
|
|