Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion app/composables/useAtproto.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import type { UserSession } from '#shared/schemas/userSession'

export function useAtproto() {
const { data: user, pending, clear } = useFetch<UserSession | null>('/api/auth/session')
const {
data: user,
pending,
clear,
} = useFetch<UserSession | null>('/api/auth/session', {
server: false,
immediate: !import.meta.test,
})

async function logout() {
await $fetch('/api/auth/session', {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/a11y-component-coverage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const SKIPPED_COMPONENTS: Record<string, string> = {
// Complex components requiring full app context or specific runtime conditions
'Header/OrgsDropdown.vue': 'Requires connector context and API calls',
'Header/PackagesDropdown.vue': 'Requires connector context and API calls',
'Header/MobileMenu.vue': 'Requires Teleport and full navigation context',
'Header/MobileMenu.client.vue': 'Requires Teleport and full navigation context',
'Modal.client.vue':
'Base modal component - tested via specific modals like ChartModal, ConnectorModal',
'Package/SkillsModal.vue': 'Complex modal with tabs - requires modal context and state',
Expand Down
Loading