@acosmi/sdk-ts 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -289,7 +289,10 @@ interface AuthorizeResult {
289
289
  * 3. 接收回调拿到 authorization code
290
290
  * 4. 返回 code 供后续 token 交换
291
291
  *
292
- * 浏览器环境会抛错 浏览器侧应自行实现 popup window + redirect handler
292
+ * 浏览器环境会抛错 (无 loopback HTTP server)
293
+ * 浏览器侧 (v1.4.0+) 请改用本文件下方的 Web OAuth 原语:
294
+ * createWebAuthorizationRequest + completeWebAuthorizationRequest
295
+ * (SDK 负责 PKCE / state 校验; popup / redirect handler 由调用方实现)
293
296
  */
294
297
  declare function authorize(meta: ServerMetadata, clientID: string, scopes: string[], opts?: LoginOptions & {
295
298
  handler?: (e: LoginEvent) => void;
@@ -289,7 +289,10 @@ interface AuthorizeResult {
289
289
  * 3. 接收回调拿到 authorization code
290
290
  * 4. 返回 code 供后续 token 交换
291
291
  *
292
- * 浏览器环境会抛错 浏览器侧应自行实现 popup window + redirect handler
292
+ * 浏览器环境会抛错 (无 loopback HTTP server)
293
+ * 浏览器侧 (v1.4.0+) 请改用本文件下方的 Web OAuth 原语:
294
+ * createWebAuthorizationRequest + completeWebAuthorizationRequest
295
+ * (SDK 负责 PKCE / state 校验; popup / redirect handler 由调用方实现)
293
296
  */
294
297
  declare function authorize(meta: ServerMetadata, clientID: string, scopes: string[], opts?: LoginOptions & {
295
298
  handler?: (e: LoginEvent) => void;