Skip to content
Merged
Show file tree
Hide file tree
Changes from 65 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
895ca53
Add init script for generating the schema
deepjyoti30-st Apr 29, 2025
7df8b4a
Add type definitions for inferring response body and request body fro…
deepjyoti30-st Apr 29, 2025
7ca8a96
Refactor querier to use inferred types in network methods
deepjyoti30-st Apr 30, 2025
bd35f00
Update all querier references to avoid usage of NormalisedURLPath
deepjyoti30-st Apr 30, 2025
9a6f0a5
Add fixes for webauthn schema issues
deepjyoti30-st May 6, 2025
8bb464b
Update the local API spec based on the updated version
deepjyoti30-st May 6, 2025
a76d845
Update API spec to match user definition changes in spec
deepjyoti30-st May 6, 2025
1693aae
Add fix for user handling in SDK from API
deepjyoti30-st May 6, 2025
f05d6e6
Add fix for emailpassword recipe
deepjyoti30-st May 6, 2025
0669778
Add fixes for multitenancy related conflicts
deepjyoti30-st May 6, 2025
9362710
Fix some more recipe related type conflicts
deepjyoti30-st May 6, 2025
24c715d
Fix various type conflicts in the schema
deepjyoti30-st May 7, 2025
6b7f9a0
Fix passwordless type mismatches
deepjyoti30-st May 7, 2025
9e165e2
Add fixes to thirdparty and usermetadata based on types
deepjyoti30-st May 7, 2025
cbe9c28
Fix some issues with unused variables/imports
deepjyoti30-st May 7, 2025
90ed34e
Update built spec with oauth endpoint returning incorrect status
deepjyoti30-st May 7, 2025
cc35817
Update oauth2provider related type fixes
deepjyoti30-st May 8, 2025
7b10194
Add build files and pretty fixes
deepjyoti30-st May 9, 2025
8af3ebf
Bumps version to 22.2.0
deepjyoti30-st May 9, 2025
bf3cf4e
Add init script for generating the schema
deepjyoti30-st Apr 29, 2025
4416c46
Add type definitions for inferring response body and request body fro…
deepjyoti30-st Apr 29, 2025
49f2e0e
Refactor querier to use inferred types in network methods
deepjyoti30-st Apr 30, 2025
8d1c655
Update all querier references to avoid usage of NormalisedURLPath
deepjyoti30-st Apr 30, 2025
a1e3df8
Add fixes for webauthn schema issues
deepjyoti30-st May 6, 2025
fa03ed3
Update the local API spec based on the updated version
deepjyoti30-st May 6, 2025
571f48a
Update API spec to match user definition changes in spec
deepjyoti30-st May 6, 2025
ce92ee8
Add fix for user handling in SDK from API
deepjyoti30-st May 6, 2025
f8b2776
Add fix for emailpassword recipe
deepjyoti30-st May 6, 2025
90af0bf
Add fixes for multitenancy related conflicts
deepjyoti30-st May 6, 2025
12cdb0e
Fix some more recipe related type conflicts
deepjyoti30-st May 6, 2025
fcd1bd9
Fix various type conflicts in the schema
deepjyoti30-st May 7, 2025
87c7b4b
Fix passwordless type mismatches
deepjyoti30-st May 7, 2025
6ea5a1c
Add fixes to thirdparty and usermetadata based on types
deepjyoti30-st May 7, 2025
7d68cd3
Fix some issues with unused variables/imports
deepjyoti30-st May 7, 2025
39b0d74
Update built spec with oauth endpoint returning incorrect status
deepjyoti30-st May 7, 2025
8574eec
Update oauth2provider related type fixes
deepjyoti30-st May 8, 2025
e96361c
Add build files and pretty fixes
deepjyoti30-st May 9, 2025
8a70534
Bumps version to 22.2.0
deepjyoti30-st May 9, 2025
07b702a
Merge branch '22.1' into feat/dynamically-inferred-core-types
porcellus May 13, 2025
602b7dd
Merge branch 'feat/dynamically-inferred-core-types' of github.com-sup…
deepjyoti30-st May 15, 2025
645ce92
Fix a path in the generate script
deepjyoti30-st May 16, 2025
3dc0ec3
Rename template to template_path in querier
deepjyoti30-st May 16, 2025
4e2bbc6
Move to using Required instead of MakeAllRequired
deepjyoti30-st May 16, 2025
4d269e7
Get rid of word boundary in regex
deepjyoti30-st May 16, 2025
22e068d
Get rid of some unused code
deepjyoti30-st May 16, 2025
9586901
Add support for auto generating paths.ts
deepjyoti30-st May 16, 2025
c328ab6
Add build files after changes
deepjyoti30-st May 16, 2025
df9c389
Add comment explaining fromApi method in User
deepjyoti30-st May 16, 2025
0cd1a50
Fix type mismatch in multitenancy routes
deepjyoti30-st May 16, 2025
d08660f
Fix name of template path to camelCase
deepjyoti30-st May 16, 2025
ab48e5c
Fix querier change in build
deepjyoti30-st May 16, 2025
896f163
Fix use of a param key in token revoke endpoint
deepjyoti30-st Jun 2, 2025
38ac57c
Fix issues of unhandled OAUTH_ERROR in oauth accept/reject endpoint
deepjyoti30-st Jun 3, 2025
126ea18
Fix issue with failing email verification test for thirdparty
deepjyoti30-st Jun 4, 2025
8930783
Add support for falling back to public as tenantId for webauthn options
deepjyoti30-st Jun 4, 2025
089b289
update: dumps server logs to directory
namsnath Jun 4, 2025
937528c
Fix querier calls in plain JS to use new signature
deepjyoti30-st Jun 4, 2025
57a61aa
Merge branch 'feat/dynamically-inferred-core-types' of github.com-sup…
deepjyoti30-st Jun 4, 2025
2c6bda1
Bump version and update changelog with more details of changes
deepjyoti30-st Jun 5, 2025
8576fe7
Make changes based on the spec update for OauthError
deepjyoti30-st Jun 10, 2025
7878448
Remove duplicate Oauth error type
deepjyoti30-st Jun 11, 2025
96e5fda
Remove some unintended type changes in oauth methods
deepjyoti30-st Jun 11, 2025
ad250c4
Remove some removed changes from changelog
deepjyoti30-st Jun 11, 2025
9731f82
Update handling of OAUTH_ERROR in some methods to return them
deepjyoti30-st Jun 12, 2025
a81b3a0
Update changelog with details of changes
deepjyoti30-st Jun 12, 2025
d69a80a
Merge remote-tracking branch 'origin/22.1' into feat/dynamically-infe…
porcellus Jun 13, 2025
ebdc52c
fix: WebAuthn type fixes to align with CDI (#1002)
coolbueb Jun 13, 2025
b4cd8d7
fix: update after rebuilding core-types
porcellus Jun 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/tests-pass-check-pr.yml

This file was deleted.

13 changes: 11 additions & 2 deletions .github/workflows/website-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ jobs:
fdi-version: ${{ fromJSON(needs.define-versions.outputs.fdiVersions) }}

steps:
- name: Setup ENVs
id: envs
run: |
APP_SERVER_LOG_DIR=${{ github.workspace }}/logs
echo "APP_SERVER_LOG_DIR=$APP_SERVER_LOG_DIR" | tee -a "$GITHUB_OUTPUT" "$GITHUB_ENV"

mkdir -p $APP_SERVER_LOG_DIR

- uses: actions/checkout@v4
with:
path: supertokens-node
Expand Down Expand Up @@ -69,12 +77,13 @@ jobs:
run: |
npm i

NODE_PORT=8080 node . &> app-server.log &
NODE_PORT=8082 node . &> app-server-cross-domain.log &
NODE_PORT=8080 node . &> ${{ steps.envs.outputs.APP_SERVER_LOG_DIR }}/app-server.log &
NODE_PORT=8082 node . &> ${{ steps.envs.outputs.APP_SERVER_LOG_DIR }}/app-server-cross-domain.log &

- uses: supertokens/website-testing-action@main
with:
version: ${{ steps.versions.outputs.frontendVersionXy }}
node-sdk-version: ${{ steps.versions.outputs.nodeTag }}
path: supertokens-website
check-name-suffix: "[Node=${{ matrix.node-version }}][FDI=${{ matrix.fdi-version }}]"
app-server-logs: ${{ steps.envs.outputs.APP_SERVER_LOG_DIR }}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Sets up workflow to run auth-react tests
- Updates test-servers to work with updated tests

## [23.0.0] - 2025-06-10

- The `getConsentRequest`, `acceptConsentRequest`, `rejectConsentRequest`, `acceptLoginRequest`, `rejectLoginRequest` and `introspectToken` can now possibly return an `ErrorOAuth2`.
- The `/oauth/introspect` can now possibly return an `ErrorAuth2`.
- The `User` class now has a `fromApi` function to normalize the user object returned from the API.
- Refactors querier to use dynamic request body and response body types inference.
- Refactor internal network calls made with querier to use the new dynamic types.

## [22.1.0] - 2025-04-04

- Adds support for using `code_challenge_method` from OIDC provider response to determine whether to use PKCE or not.
Expand Down
3 changes: 3 additions & 0 deletions lib/build/core/paths.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions lib/build/core/paths.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions lib/build/core/types.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions lib/build/core/types.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions lib/build/customFramework.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion lib/build/customFramework.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion lib/build/framework/custom/framework.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion lib/build/framework/express/framework.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions lib/build/framework/fastify/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion lib/build/framework/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 16 additions & 2 deletions lib/build/framework/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion lib/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion lib/build/nextjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 49 additions & 16 deletions lib/build/querier.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading