Scrapboard.org client

fix: allow logged out

+3 -1
+3 -1
src/lib/hooks/useAuth.tsx
··· 28 29 export function AuthProvider({ children }: { children: ReactNode }) { 30 const [session, setSession] = useState<OAuthSession | null>(null); 31 - const [agent, setAgent] = useState<Agent | null>(null); 32 const [loading, setLoading] = useState(true); 33 const [client, setClient] = useState<BrowserOAuthClient | null>(null); 34
··· 28 29 export function AuthProvider({ children }: { children: ReactNode }) { 30 const [session, setSession] = useState<OAuthSession | null>(null); 31 + const [agent, setAgent] = useState<Agent | null>( 32 + new Agent({ service: "https://bsky.social" }) 33 + ); 34 const [loading, setLoading] = useState(true); 35 const [client, setClient] = useState<BrowserOAuthClient | null>(null); 36