Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e8e58c7
fix: webauthn mfa integration
namsnath Aug 28, 2025
596eaa5
feat: uses new versions action
namsnath Aug 25, 2025
41de9d2
doc: update docs for v0.30.3 tag
github-actions[bot] Sep 2, 2025
514d117
fix: use core without dev mode, skip some tests
namsnath Sep 4, 2025
27d9f20
doc: update docs for v0.30.3 tag
github-actions[bot] Oct 28, 2025
8026baf
update: run tests on version branches and PRs with the test label
namsnath Oct 31, 2025
7aceaca
feat: adds workflow to check docs and add commit if required
namsnath Oct 31, 2025
aa07c44
update: removes dev tag pipeline
namsnath Nov 4, 2025
fe9c645
feat: uses check-tests-passed action
namsnath Nov 4, 2025
9a0e8cc
fix: don't allow empty commits
namsnath Nov 4, 2025
c977c66
update: update label name
namsnath Nov 4, 2025
509a922
fix: adds `rp_id` field to `SignInOptionResponse`
namsnath Oct 31, 2025
c893cb7
update: changelog
namsnath Oct 31, 2025
d7de240
fix: Update phonenumbers version to cover failing validation edgecases
bcbogdan Jan 23, 2026
0e822f4
Merge pull request #622 from supertokens/feat/gha/remove-dev-tag
porcellus Jan 30, 2026
87d8502
chore: better constrain the phonenumbers dep version
porcellus Jan 30, 2026
7ca9cd4
Merge remote-tracking branch 'origin/0.30' into update-phonenumbers
porcellus Jan 30, 2026
096c69a
chore: use dev core entrypoint for tests
porcellus Jan 30, 2026
9dff53b
fix: add missing dep for newer python versions
porcellus Jan 30, 2026
87c753c
fix: add data to rp_id field
porcellus Jan 30, 2026
8c464d1
chore: update changelog
porcellus Jan 30, 2026
9881bbd
fix: fix the error message/status code of the tokenExchange when the …
porcellus Jan 30, 2026
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
42 changes: 32 additions & 10 deletions .github/workflows/auth-react-test-1-django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- opened
- reopened
- synchronize
- labeled
- unlabeled
push:
tags:
- dev-v[0-9]+.[0-9]+.[0-9]+
branches:
- '[0-9]+.[0-9]+'

# Only one instance of this workflow will run on the same ref (PR/Branch/Tag)
# Previous runs will be cancelled.
Expand All @@ -18,11 +20,14 @@ concurrency:

jobs:
define-versions:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
runs-on: ubuntu-latest
outputs:
fdiVersions: ${{ steps.versions.outputs.fdiVersions }}
cdiVersions: ${{ steps.versions.outputs.cdiVersions }}
pyVersions: '["3.8", "3.13"]'
nodeFdiVersionMap: ${{ steps.node-versions.outputs.fdiVersions }}
authReactFdiVersionMap: ${{ steps.auth-react-versions.outputs.fdiVersions }}
steps:
- uses: actions/checkout@v4

Expand All @@ -32,7 +37,22 @@ jobs:
has-fdi: true
has-cdi: true

- uses: supertokens/actions/get-versions-from-repo@main
id: auth-react-versions
with:
repo: supertokens-auth-react
github-token: ${{ secrets.GITHUB_TOKEN }}
fdi-versions: ${{ steps.versions.outputs.fdiVersions }}

- uses: supertokens/actions/get-versions-from-repo@main
id: node-versions
with:
repo: supertokens-node
github-token: ${{ secrets.GITHUB_TOKEN }}
fdi-versions: ${{ steps.versions.outputs.fdiVersions }}

setup-auth-react:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
runs-on: ubuntu-latest
needs: define-versions
strategy:
Expand All @@ -51,19 +71,20 @@ jobs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}

steps:
- uses: supertokens/get-versions-action@main
- name: Get node and auth-react versions for FDI
id: versions
with:
driver-name: python
fdi-version: ${{ matrix.fdi-version }}
env:
SUPERTOKENS_API_KEY: ${{ secrets.SUPERTOKENS_API_KEY }}
run: |
nodeVersion=$( echo '${{ needs.define-versions.outputs.nodeFdiVersionMap }}' | jq -r '.["${{ matrix.fdi-version }}"]' )
authReactVersion=$( echo '${{ needs.define-versions.outputs.authReactFdiVersionMap }}' | jq -r '.["${{ matrix.fdi-version }}"]' )

echo "nodeVersion=${nodeVersion}" >> $GITHUB_OUTPUT
echo "authReactVersion=${authReactVersion}" >> $GITHUB_OUTPUT

- uses: supertokens/auth-react-testing-action/setup@main
id: envs
with:
auth-react-version: ${{ steps.versions.outputs.authReactVersionXy }}
node-sdk-version: ${{ steps.versions.outputs.nodeTag }}
auth-react-version: ${{ steps.versions.outputs.authReactVersion }}
node-sdk-version: ${{ steps.versions.outputs.nodeVersion }}
fdi-version: ${{ matrix.fdi-version }}

- id: setup-matrix
Expand All @@ -76,6 +97,7 @@ jobs:
spec: ${{ steps.envs.outputs.specs }}

launch-fdi-workflows:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
uses: ./.github/workflows/auth-react-test-2.yml
needs:
- define-versions
Expand Down
42 changes: 32 additions & 10 deletions .github/workflows/auth-react-test-1-fastapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- opened
- reopened
- synchronize
- labeled
- unlabeled
push:
tags:
- dev-v[0-9]+.[0-9]+.[0-9]+
branches:
- '[0-9]+.[0-9]+'

# Only one instance of this workflow will run on the same ref (PR/Branch/Tag)
# Previous runs will be cancelled.
Expand All @@ -18,11 +20,14 @@ concurrency:

jobs:
define-versions:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
runs-on: ubuntu-latest
outputs:
fdiVersions: ${{ steps.versions.outputs.fdiVersions }}
cdiVersions: ${{ steps.versions.outputs.cdiVersions }}
pyVersions: '["3.8", "3.13"]'
nodeFdiVersionMap: ${{ steps.node-versions.outputs.fdiVersions }}
authReactFdiVersionMap: ${{ steps.auth-react-versions.outputs.fdiVersions }}
steps:
- uses: actions/checkout@v4

Expand All @@ -32,7 +37,22 @@ jobs:
has-fdi: true
has-cdi: true

- uses: supertokens/actions/get-versions-from-repo@main
id: auth-react-versions
with:
repo: supertokens-auth-react
github-token: ${{ secrets.GITHUB_TOKEN }}
fdi-versions: ${{ steps.versions.outputs.fdiVersions }}

- uses: supertokens/actions/get-versions-from-repo@main
id: node-versions
with:
repo: supertokens-node
github-token: ${{ secrets.GITHUB_TOKEN }}
fdi-versions: ${{ steps.versions.outputs.fdiVersions }}

setup-auth-react:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
runs-on: ubuntu-latest
needs: define-versions
strategy:
Expand All @@ -51,19 +71,20 @@ jobs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}

steps:
- uses: supertokens/get-versions-action@main
- name: Get node and auth-react versions for FDI
id: versions
with:
driver-name: python
fdi-version: ${{ matrix.fdi-version }}
env:
SUPERTOKENS_API_KEY: ${{ secrets.SUPERTOKENS_API_KEY }}
run: |
nodeVersion=$( echo '${{ needs.define-versions.outputs.nodeFdiVersionMap }}' | jq -r '.["${{ matrix.fdi-version }}"]' )
authReactVersion=$( echo '${{ needs.define-versions.outputs.authReactFdiVersionMap }}' | jq -r '.["${{ matrix.fdi-version }}"]' )

echo "nodeVersion=${nodeVersion}" >> $GITHUB_OUTPUT
echo "authReactVersion=${authReactVersion}" >> $GITHUB_OUTPUT

- uses: supertokens/auth-react-testing-action/setup@main
id: envs
with:
auth-react-version: ${{ steps.versions.outputs.authReactVersionXy }}
node-sdk-version: ${{ steps.versions.outputs.nodeTag }}
auth-react-version: ${{ steps.versions.outputs.authReactVersion }}
node-sdk-version: ${{ steps.versions.outputs.nodeVersion }}
fdi-version: ${{ matrix.fdi-version }}

- id: setup-matrix
Expand All @@ -76,6 +97,7 @@ jobs:
spec: ${{ steps.envs.outputs.specs }}

launch-fdi-workflows:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
uses: ./.github/workflows/auth-react-test-2.yml
needs:
- define-versions
Expand Down
42 changes: 32 additions & 10 deletions .github/workflows/auth-react-test-1-flask.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- opened
- reopened
- synchronize
- labeled
- unlabeled
push:
tags:
- dev-v[0-9]+.[0-9]+.[0-9]+
branches:
- '[0-9]+.[0-9]+'

# Only one instance of this workflow will run on the same ref (PR/Branch/Tag)
# Previous runs will be cancelled.
Expand All @@ -18,11 +20,14 @@ concurrency:

jobs:
define-versions:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
runs-on: ubuntu-latest
outputs:
fdiVersions: ${{ steps.versions.outputs.fdiVersions }}
cdiVersions: ${{ steps.versions.outputs.cdiVersions }}
pyVersions: '["3.8", "3.13"]'
nodeFdiVersionMap: ${{ steps.node-versions.outputs.fdiVersions }}
authReactFdiVersionMap: ${{ steps.auth-react-versions.outputs.fdiVersions }}
steps:
- uses: actions/checkout@v4

Expand All @@ -32,7 +37,22 @@ jobs:
has-fdi: true
has-cdi: true

- uses: supertokens/actions/get-versions-from-repo@main
id: auth-react-versions
with:
repo: supertokens-auth-react
github-token: ${{ secrets.GITHUB_TOKEN }}
fdi-versions: ${{ steps.versions.outputs.fdiVersions }}

- uses: supertokens/actions/get-versions-from-repo@main
id: node-versions
with:
repo: supertokens-node
github-token: ${{ secrets.GITHUB_TOKEN }}
fdi-versions: ${{ steps.versions.outputs.fdiVersions }}

setup-auth-react:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
runs-on: ubuntu-latest
needs: define-versions
strategy:
Expand All @@ -51,19 +71,20 @@ jobs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}

steps:
- uses: supertokens/get-versions-action@main
- name: Get node and auth-react versions for FDI
id: versions
with:
driver-name: python
fdi-version: ${{ matrix.fdi-version }}
env:
SUPERTOKENS_API_KEY: ${{ secrets.SUPERTOKENS_API_KEY }}
run: |
nodeVersion=$( echo '${{ needs.define-versions.outputs.nodeFdiVersionMap }}' | jq -r '.["${{ matrix.fdi-version }}"]' )
authReactVersion=$( echo '${{ needs.define-versions.outputs.authReactFdiVersionMap }}' | jq -r '.["${{ matrix.fdi-version }}"]' )

echo "nodeVersion=${nodeVersion}" >> $GITHUB_OUTPUT
echo "authReactVersion=${authReactVersion}" >> $GITHUB_OUTPUT

- uses: supertokens/auth-react-testing-action/setup@main
id: envs
with:
auth-react-version: ${{ steps.versions.outputs.authReactVersionXy }}
node-sdk-version: ${{ steps.versions.outputs.nodeTag }}
auth-react-version: ${{ steps.versions.outputs.authReactVersion }}
node-sdk-version: ${{ steps.versions.outputs.nodeVersion }}
fdi-version: ${{ matrix.fdi-version }}

- id: setup-matrix
Expand All @@ -76,6 +97,7 @@ jobs:
spec: ${{ steps.envs.outputs.specs }}

launch-fdi-workflows:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
uses: ./.github/workflows/auth-react-test-2.yml
needs:
- define-versions
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/auth-react-test-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ on:

jobs:
retrieve-matrix:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
runs-on: ubuntu-latest

outputs:
Expand All @@ -55,6 +56,7 @@ jobs:
echo "matrix=$matrix" | tee -a "$GITHUB_OUTPUT"

launch-test-workflows:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
needs:
- retrieve-matrix

Expand Down
26 changes: 25 additions & 1 deletion .github/workflows/auth-react-test-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ on:

jobs:
test:
if: ${{ inputs.matrix != '{"include":[]}' }}
if: inputs.matrix != '{"include":[]}' && (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests'))
runs-on: ubuntu-latest
strategy:
max-parallel: 10
Expand Down Expand Up @@ -83,8 +83,32 @@ jobs:
python3 -m pip install pip setuptools --upgrade
make dev-install && rm -rf src

- name: Get supported Python CDI versions
id: cdi-versions
uses: supertokens/get-supported-versions-action@main
with:
has-cdi: true
working-directory: supertokens-python

- uses: supertokens/actions/get-versions-from-repo@main
id: core-versions
with:
repo: supertokens-core
github-token: ${{ secrets.GITHUB_TOKEN }}
cdi-versions: ${{ steps.cdi-versions.outputs.cdiVersions }}

- name: Get core version from latest Python CDI version
id: core-version
run: |
lastPythonCdiVersion=$(echo '${{ steps.cdi-versions.outputs.cdiVersions }}' | jq -r '.[-1]' | sed -e 's/"/\\"/g')
coreVersion=$(echo '${{ steps.core-versions.outputs.cdiVersions }}' | jq -r ".[\"$lastPythonCdiVersion\"]")

echo "coreVersion=${coreVersion}" >> $GITHUB_OUTPUT

- name: Start core
working-directory: supertokens-python
env:
SUPERTOKENS_CORE_VERSION: ${{ steps.core-version.outputs.coreVersion }}
run: docker compose up --wait

- name: Start Server (django)
Expand Down
Loading
Loading