mock-authentication.ts 407 B

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