
- auth clients are always shared, cannot be disabled - custom connections are enabled by default, can be disabled - any existing connections can be reconnected regardless of its AppConfig or AppAuthClient states
16 lines
356 B
JavaScript
16 lines
356 B
JavaScript
import { useQuery } from '@tanstack/react-query';
|
|
import api from 'helpers/api';
|
|
|
|
export default function useLicense() {
|
|
const query = useQuery({
|
|
queryKey: ['automatisch', 'license'],
|
|
queryFn: async ({ signal }) => {
|
|
const { data } = await api.get('/v1/automatisch/license', { signal });
|
|
|
|
return data;
|
|
},
|
|
});
|
|
|
|
return query;
|
|
}
|