We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6af87 commit 50f9c68Copy full SHA for 50f9c68
1 file changed
app/composables/useAtproto.ts
@@ -1,6 +1,14 @@
1
import type { UserSession } from '#shared/schemas/userSession'
2
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
+
12
const { data: user, pending, clear } = useFetch<UserSession | null>('/api/auth/session')
13
14
async function logout() {
0 commit comments