useCheckTokenAccess.ts 377 B

123456789101112131415
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { computed } from 'vue'
  3. import { useApplicationStore } from '#shared/stores/application.ts'
  4. export const useCheckTokenAccess = () => {
  5. const { config } = useApplicationStore()
  6. const canUseAccessToken = computed(() => !!config.api_token_access)
  7. return {
  8. canUseAccessToken,
  9. }
  10. }