Highly ambitious ATProtocol AppView service and sdks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix workspace deno check errors

+15 -8
+2 -1
deno.json
··· 27 27 "@std/fmt": "jsr:@std/fmt@^1.0.2" 28 28 }, 29 29 "exclude": [ 30 - "packages/cli/src/templates/deno-ssr/" 30 + "packages/cli/src/templates/deno-ssr/", 31 + "packages/lexicon-intellisense/" 31 32 ], 32 33 "nodeModulesDir": "auto" 33 34 }
+9 -7
packages/cli/src/auth/device_flow.ts
··· 27 27 ? `start "${authResponse.verification_uri_complete}"` 28 28 : `xdg-open "${authResponse.verification_uri_complete}"`; 29 29 30 - try { 31 - await new Deno.Command(Deno.build.os === "darwin" ? "open" : Deno.build.os === "windows" ? "cmd" : "xdg-open", { 32 - args: Deno.build.os === "windows" 30 + if (authResponse.verification_uri_complete) { 31 + try { 32 + const command = Deno.build.os === "darwin" ? "open" : Deno.build.os === "windows" ? "cmd" : "xdg-open"; 33 + const args: string[] = Deno.build.os === "windows" 33 34 ? ["/c", "start", authResponse.verification_uri_complete] 34 - : [authResponse.verification_uri_complete], 35 - }).output(); 36 - } catch { 37 - console.log("Could not open browser automatically. Please open the link manually.\n"); 35 + : [authResponse.verification_uri_complete]; 36 + await new Deno.Command(command, { args }).output(); 37 + } catch { 38 + console.log("Could not open browser automatically. Please open the link manually.\n"); 39 + } 38 40 } 39 41 40 42 const tokenResponse = await deviceClient.pollForToken(
+4
packages/cli/src/utils/client.ts
··· 28 28 tokenType: "Bearer", 29 29 }; 30 30 } 31 + 32 + async refreshAccessToken(): Promise<{ accessToken: string; tokenType?: string }> { 33 + return this.ensureValidToken(); 34 + } 31 35 } 32 36 33 37 export async function createAuthenticatedClient(sliceUri: string, apiUrl = "https://api.slices.network"): Promise<AtProtoClient> {