Skip to content

Commit 135b54c

Browse files
authored
Merge pull request #51 from supertokens/feat/add_shouldTryLinkingWithSessionUser
feat: add shouldTryLinkingWithSessionUser
2 parents a81aef2 + a4b48ff commit 135b54c

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
77

8+
## [3.1.0] - 2024-10-18
9+
10+
### Changes
11+
12+
- Added an optional `shouldTryLinkingWithSessionUser` to sign in/up related APIs:
13+
- `EmailPassword.signInPOST`: `POST /{apiBasePath}/<tenantId>/signin`
14+
- `EmailPassword.signUpPOST`: `POST /{apiBasePath}/<tenantId>/signup`
15+
- `ThirdParty.signInUpPOST`: `POST /{apiBasePath}/<tenantId>/signinup`
16+
- `Passwordless.createCodePOST`: `POST /{apiBasePath}/<tenantId>/signinup/code`
17+
- `Passwordless.consumeCodePOST`: `POST /{apiBasePath}/<tenantId>/signinup/code/consume`
18+
- `Passwordless.resendCodePOST`: `POST /{apiBasePath}/<tenantId>/signinup/code/resend`
19+
820
## [3.0.0] - 2024-05-24
921

1022
### Changes

api_spec.yaml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
description: |
55
These are the APIs exposed by our backend SDK. To be consumed by the frontend only.
66
`<tenantId>` in all the APIs are optional. Its default value is `public`
7-
version: "3.0.0"
7+
version: "3.1.0"
88
title: Frontend Driver Interface
99
contact:
1010
@@ -474,12 +474,18 @@ paths:
474474
properties:
475475
email:
476476
$ref: '#/components/schemas/email'
477+
shouldTryLinkingWithSessionUser:
478+
type: boolean
479+
example: false
477480
required:
478481
- email
479482
- type: object
480483
properties:
481484
phoneNumber:
482485
$ref: '#/components/schemas/phoneNumber'
486+
shouldTryLinkingWithSessionUser:
487+
type: boolean
488+
example: false
483489
required:
484490
- phoneNumber
485491

@@ -540,6 +546,9 @@ paths:
540546
$ref: '#/components/schemas/deviceId'
541547
preAuthSessionId:
542548
$ref: '#/components/schemas/preAuthSessionId'
549+
shouldTryLinkingWithSessionUser:
550+
type: boolean
551+
example: false
543552
required:
544553
- deviceId
545554
- preAuthSessionId
@@ -583,6 +592,9 @@ paths:
583592
properties:
584593
preAuthSessionId:
585594
$ref: '#/components/schemas/preAuthSessionId'
595+
shouldTryLinkingWithSessionUser:
596+
type: boolean
597+
example: false
586598
linkCode:
587599
type: string
588600
example: b10lbT_SnDC4flA6Fn7pE5TtG5k5NfigLef4QMBeGA8
@@ -594,6 +606,9 @@ paths:
594606
properties:
595607
preAuthSessionId:
596608
$ref: '#/components/schemas/preAuthSessionId'
609+
shouldTryLinkingWithSessionUser:
610+
type: boolean
611+
example: false
597612
deviceId:
598613
$ref: '#/components/schemas/deviceId'
599614
userInputCode:
@@ -938,9 +953,14 @@ paths:
938953
application/json:
939954
schema:
940955
type: object
956+
required:
957+
- formFields
941958
properties:
942959
formFields:
943960
$ref: '#/components/schemas/formFields'
961+
shouldTryLinkingWithSessionUser:
962+
type: boolean
963+
example: false
944964
responses:
945965
'200':
946966
description: Sign in Response
@@ -1003,9 +1023,14 @@ paths:
10031023
application/json:
10041024
schema:
10051025
type: object
1026+
required:
1027+
- formFields
10061028
properties:
10071029
formFields:
10081030
$ref: '#/components/schemas/formFields'
1031+
shouldTryLinkingWithSessionUser:
1032+
type: boolean
1033+
example: false
10091034
responses:
10101035
'200':
10111036
description: Sign up Response
@@ -1235,6 +1260,9 @@ paths:
12351260
pkceCodeVerifier:
12361261
type: string
12371262
example: abcd1234
1263+
shouldTryLinkingWithSessionUser:
1264+
type: boolean
1265+
example: false
12381266
- type: object
12391267
required:
12401268
- thirdPartyId
@@ -1246,6 +1274,9 @@ paths:
12461274
$ref: '#/components/schemas/clientType'
12471275
oAuthTokens:
12481276
$ref: '#/components/schemas/oAuthTokens'
1277+
shouldTryLinkingWithSessionUser:
1278+
type: boolean
1279+
example: false
12491280
responses:
12501281
'200':
12511282
description: Signin/up a user

0 commit comments

Comments
 (0)