feat: create atproto oauth login

This commit is contained in:
Julien Calixte
2026-03-10 12:27:35 +01:00
parent 908641e54b
commit 8843d67a80
16 changed files with 485 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
import { Ref, ref, watch } from 'vue'
import { getFollows } from '@/modules/atproto/service/getFollows'
export const useFollows = (did: Ref<string | null>) => {
const follows = ref<Set<string>>(new Set())
watch(
did,
async (value) => {
if (value) {
follows.value = await getFollows(value)
} else {
follows.value = new Set()
}
},
{ immediate: true },
)
return { follows }
}