@workos/openapi-spec 0.164.0 → 0.165.0

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.
@@ -2190,31 +2190,22 @@ paths:
2190
2190
  /authkit/oauth2/complete:
2191
2191
  post:
2192
2192
  description: >-
2193
- Completes an external authentication flow and returns control to
2194
- AuthKit. This endpoint is used with [Standalone
2195
- Connect](/authkit/connect/standalone) to bridge your existing
2196
- authentication system with the Connect OAuth API infrastructure.
2193
+ Completes a [Standalone Connect](/authkit/connect/standalone) login by
2194
+ creating or updating the AuthKit user and returning a `redirect_uri`
2195
+ your application should redirect to so AuthKit can finish the flow.
2197
2196
 
2198
2197
 
2199
- After successfully authenticating a user in your application, calling
2200
- this endpoint will:
2198
+ The user is matched by `id`, stored as its `external_id`, and updated if
2199
+ found. Otherwise:
2201
2200
 
2202
2201
 
2203
- - Create or update the user in AuthKit, using the given `id` as its
2204
- `external_id`.
2202
+ - If a user with the given `email` has no `external_id`, it is linked to
2203
+ `id`.
2205
2204
 
2206
- - Return a `redirect_uri` your application should redirect to in order
2207
- for AuthKit to complete the flow
2205
+ - If a user with the given `email` has a different `external_id`, the
2206
+ request fails.
2208
2207
 
2209
-
2210
- Users are automatically created or updated based on the `id` and `email`
2211
- provided. If a user with the same `id` exists, their information is
2212
- updated. Otherwise, a new user is created.
2213
-
2214
-
2215
- If you provide a new `id` with an `email` that already belongs to an
2216
- existing user, the request will fail with an error as email addresses
2217
- are unique to a user.
2208
+ - If no user has the given `email`, a new user is created.
2218
2209
  operationId: ExternalAuthController_completeLogin
2219
2210
  parameters: []
2220
2211
  requestBody:
package/dist/types.d.ts CHANGED
@@ -543,16 +543,13 @@ export interface paths {
543
543
  put?: never;
544
544
  /**
545
545
  * Complete external authentication
546
- * @description Completes an external authentication flow and returns control to AuthKit. This endpoint is used with [Standalone Connect](/authkit/connect/standalone) to bridge your existing authentication system with the Connect OAuth API infrastructure.
546
+ * @description Completes a [Standalone Connect](/authkit/connect/standalone) login by creating or updating the AuthKit user and returning a `redirect_uri` your application should redirect to so AuthKit can finish the flow.
547
547
  *
548
- * After successfully authenticating a user in your application, calling this endpoint will:
548
+ * The user is matched by `id`, stored as its `external_id`, and updated if found. Otherwise:
549
549
  *
550
- * - Create or update the user in AuthKit, using the given `id` as its `external_id`.
551
- * - Return a `redirect_uri` your application should redirect to in order for AuthKit to complete the flow
552
- *
553
- * Users are automatically created or updated based on the `id` and `email` provided. If a user with the same `id` exists, their information is updated. Otherwise, a new user is created.
554
- *
555
- * If you provide a new `id` with an `email` that already belongs to an existing user, the request will fail with an error as email addresses are unique to a user.
550
+ * - If a user with the given `email` has no `external_id`, it is linked to `id`.
551
+ * - If a user with the given `email` has a different `external_id`, the request fails.
552
+ * - If no user has the given `email`, a new user is created.
556
553
  */
557
554
  post: operations["ExternalAuthController_completeLogin"];
558
555
  delete?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.164.0",
3
+ "version": "0.165.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",