@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.
- package/dist/open-api-spec.yaml +10 -19
- package/dist/types.d.ts +5 -8
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -2190,31 +2190,22 @@ paths:
|
|
|
2190
2190
|
/authkit/oauth2/complete:
|
|
2191
2191
|
post:
|
|
2192
2192
|
description: >-
|
|
2193
|
-
Completes
|
|
2194
|
-
AuthKit
|
|
2195
|
-
|
|
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
|
-
|
|
2200
|
-
|
|
2198
|
+
The user is matched by `id`, stored as its `external_id`, and updated if
|
|
2199
|
+
found. Otherwise:
|
|
2201
2200
|
|
|
2202
2201
|
|
|
2203
|
-
-
|
|
2204
|
-
`
|
|
2202
|
+
- If a user with the given `email` has no `external_id`, it is linked to
|
|
2203
|
+
`id`.
|
|
2205
2204
|
|
|
2206
|
-
-
|
|
2207
|
-
|
|
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
|
|
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
|
-
*
|
|
548
|
+
* The user is matched by `id`, stored as its `external_id`, and updated if found. Otherwise:
|
|
549
549
|
*
|
|
550
|
-
* -
|
|
551
|
-
* -
|
|
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;
|