[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: do not hit session endpoint in ssr

+8
+8
app/composables/useAtproto.ts
··· 1 1 import type { UserSession } from '#shared/schemas/userSession' 2 2 3 3 export function useAtproto() { 4 + if (import.meta.server) { 5 + return { 6 + user: ref(null), 7 + pending: ref(false), 8 + logout: async () => {}, 9 + } 10 + } 11 + 4 12 const { data: user, pending, clear } = useFetch<UserSession | null>('/api/auth/session') 5 13 6 14 async function logout() {