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.

Add prompt option for OAuth-based account registration (v5.1.0)

+24 -1
+10
CHANGELOG.md
··· 5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 7 8 + ## [5.1.0] - 2026-02-15 9 + 10 + ### Added 11 + 12 + - **`prompt` option in `AuthorizeOptions`**: Pass `prompt: "create"` to direct 13 + users to the PDS account registration page instead of login. After 14 + registration, the normal OAuth callback completes and the user is 15 + authenticated. This enables seamless "Create account" flows where apps can 16 + offer PDS selection and users are redirected back after signup. 17 + 8 18 ## [5.0.1] - 2026-02-15 9 19 10 20 ### Added
+1 -1
deno.json
··· 1 1 { 2 2 "name": "@tijs/oauth-client-deno", 3 - "version": "5.0.1", 3 + "version": "5.1.0", 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
src/client.ts
··· 237 237 state, 238 238 scope: options?.scope ?? "atproto transition:generic", 239 239 ...(isAuthServerUrl ? {} : { loginHint: options?.loginHint ?? input }), 240 + ...(options?.prompt ? { prompt: options.prompt } : {}), 240 241 }, 241 242 ); 242 243 ··· 882 883 state: string; 883 884 scope: string; 884 885 loginHint?: string; 886 + prompt?: string; 885 887 }, 886 888 ): Promise<string> { 887 889 const parParams = new URLSearchParams({ ··· 895 897 }); 896 898 if (params.loginHint) { 897 899 parParams.set("login_hint", params.loginHint); 900 + } 901 + if (params.prompt) { 902 + parParams.set("prompt", params.prompt); 898 903 } 899 904 900 905 this.logger.debug("Sending Pushed Authorization Request", { authServer });
+8
src/types.ts
··· 149 149 * Login hint for the authorization server 150 150 */ 151 151 loginHint?: string; 152 + 153 + /** 154 + * OAuth prompt parameter (e.g., "login", "create"). 155 + * Use "create" to direct users to the PDS account registration page 156 + * instead of login. After registration, the normal OAuth callback 157 + * completes and the user is authenticated. 158 + */ 159 + prompt?: string; 152 160 } 153 161 154 162 /**