A beautiful Tangled client with Catppuccin colors. snarled.at
catppuccin atproto tangled
Something went wrong. Try again.
368 B · 12 lines
TSX
at main
123456789101112import { createContext } from 'react'import type { Session } from '@atcute/oauth-browser-client'
type AuthContextValue = { session: Session | null isLoading: boolean error: string | null setSession: (session: Session | null) => void signOut: () => Promise<void>}
export const AuthContext = createContext<AuthContextValue | undefined>(undefined)