mock-authentication.ts 413 B

1234567891011
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { useAuthenticationStore } from '#shared/stores/authentication.ts'
  3. import { initializePiniaStore } from './components/renderComponent.ts'
  4. export const mockAuthentication = (authenticated: boolean) => {
  5. initializePiniaStore()
  6. const authentication = useAuthenticationStore()
  7. authentication.authenticated = authenticated
  8. }