AppView in a box as a Vite plugin thing
hatk.dev
1export class OAuthClient {
2 constructor(opts: { server: string; clientId?: string; redirectUri?: string; scope?: string })
3 init(): Promise<void>
4 login(handle?: string): Promise<void>
5 handleCallback(): Promise<boolean>
6 logout(): Promise<void>
7 fetch(path: string, opts?: RequestInit): Promise<Response>
8 get isLoggedIn(): boolean
9 get did(): string | null
10 get handle(): string | null
11}