A Deno-compatible AT Protocol OAuth client that serves as a drop-in replacement for @atproto/oauth-client-node
0
fork

Configure Feed

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

Omit login_hint when authorizing via auth server URL

Bluesky rejects login_hint values that aren't valid handles.
When using an auth server URL directly, skip login_hint entirely.

+6 -4
+1 -1
deno.json
··· 1 1 { 2 2 "name": "@tijs/oauth-client-deno", 3 - "version": "4.1.0", 3 + "version": "4.1.1", 4 4 "description": "AT Protocol OAuth client for Deno - handle-focused alternative to @atproto/oauth-client-node with Web Crypto API compatibility", 5 5 "license": "MIT", 6 6 "repository": {
+5 -3
src/client.ts
··· 221 221 codeChallenge, 222 222 state, 223 223 scope: options?.scope ?? "atproto transition:generic", 224 - loginHint: options?.loginHint ?? input, 224 + ...(isAuthServerUrl ? {} : { loginHint: options?.loginHint ?? input }), 225 225 }, 226 226 ); 227 227 ··· 714 714 codeChallenge: string; 715 715 state: string; 716 716 scope: string; 717 - loginHint: string; 717 + loginHint?: string; 718 718 }, 719 719 ): Promise<string> { 720 720 const parParams = new URLSearchParams({ ··· 725 725 code_challenge: params.codeChallenge, 726 726 code_challenge_method: "S256", 727 727 state: params.state, 728 - login_hint: params.loginHint, 729 728 }); 729 + if (params.loginHint) { 730 + parParams.set("login_hint", params.loginHint); 731 + } 730 732 731 733 this.logger.debug("Sending Pushed Authorization Request", { authServer }); 732 734