AT Protocol module for Open Web Desktop

refactor: Update to nuxt-atproto 0.0.4

dxlliv 40da75a4 bc213546

Changed files
+3 -2
runtime
+3 -2
runtime/plugin.ts
··· 10 10 // handle oauth callback + session restore 11 11 12 12 nuxtApp.hook('app:mounted', async () => { 13 + const {$atproto} = useNuxtApp() 13 14 const atproto = useAtproto() 14 15 15 16 if (atproto.isLogged()) { 16 - const agent = useAgent('private') 17 + const agent = useAgent('public') 17 18 18 19 atprotoAccountStore.setAccountState('fetching', true) 19 20 20 21 await agent 21 22 .getProfile({ 22 - actor: agent.assertDid, 23 + actor: $atproto.session.value.sub, 23 24 }) 24 25 .then((profile) => { 25 26 atprotoAccountStore.setAccount(profile.data)