File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1- import type { UserSession } from '#shared/schemas/userSession'
2-
31export const useAtproto = createSharedComposable ( function useAtproto ( ) {
42 const {
53 data : user ,
64 pending,
75 clear,
8- } = useFetch < UserSession | null > ( '/api/auth/session' , {
6+ } = useFetch ( '/api/auth/session' , {
97 server : false ,
108 immediate : ! import . meta. test ,
119 } )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { NodeOAuthClient } from '@atproto/oauth-client-node'
44import { parse } from 'valibot'
55import { getOAuthLock } from '#server/utils/atproto/lock'
66import { useOAuthStorage } from '#server/utils/atproto/storage'
7- import { LIKES_SCOPE , UNSET_NUXT_SESSION_PASSWORD } from '#shared/utils/constants'
7+ import { LIKES_SCOPE } from '#shared/utils/constants'
88import { OAuthMetadataSchema } from '#shared/schemas/oauth'
99// @ts -expect-error virtual file from oauth module
1010import { clientUri } from '#oauth/config'
You can’t perform that action at this time.
0 commit comments