mock-authentication.ts 414 B

123456789101112
  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. }