Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
233e87c
feat: remove react from `next-auth`, move to `vue`
phoenix-ru Mar 13, 2026
bec488a
enh: remove more packages and fix tests
phoenix-ru Mar 26, 2026
168a248
chore: fix gitignore for editors
phoenix-ru Mar 26, 2026
d68a365
Merge branch 'v4' into feat/remove-react
phoenix-ru Apr 9, 2026
b4f0ae2
chore: sync lockfile
phoenix-ru Apr 9, 2026
6415978
chore: fix workflow syntax
phoenix-ru Apr 9, 2026
e3663d9
chore: try enabling the correct setup
phoenix-ru Apr 9, 2026
116cbf7
chore: use correct input name
phoenix-ru Apr 9, 2026
0b83e20
chore: try enabling preview releases
phoenix-ru Apr 10, 2026
15bddda
chore: publish many package managers
phoenix-ru Apr 10, 2026
f261cba
chore: adjust build defaults
phoenix-ru Apr 10, 2026
f35fa04
chore: try to fix publishing
phoenix-ru Jun 12, 2026
e3e27e2
fix: fix failing CI
phoenix-ru Jun 12, 2026
e1555a4
fix: try building ESM CSS
phoenix-ru Jun 12, 2026
f1db897
Merge commit from fork
Bekacru Jun 11, 2026
83b7b8e
Merge commit from fork
Bekacru Jun 11, 2026
887bac6
test: manually sync the test with upstream
phoenix-ru Jun 18, 2026
1b1c7b0
test: fix test import
phoenix-ru Jun 18, 2026
e875d36
chore: bump deps, inline @auth/core types
phoenix-ru Jun 18, 2026
04357e6
chore: update actions
phoenix-ru Jun 18, 2026
8c5270a
fix: fix info string
phoenix-ru Jun 18, 2026
a0dde3b
chore: remove bad export
phoenix-ru Jun 18, 2026
1e654ad
fix(providers): add issuer to github (#13412)
Bekacru Apr 13, 2026
eb8cd3b
docs: add disclaimer
phoenix-ru Jun 24, 2026
0cbafc3
ci: update release.yml to be consistent with sidebase
phoenix-ru Jun 24, 2026
c7d3b8b
chore: bump package version
phoenix-ru Jun 24, 2026
3029081
4.24.14-next.1
phoenix-ru Jun 24, 2026
2654af9
chore: disallow vulnerable nodemailer 8
phoenix-ru Jun 24, 2026
83a2047
chore: revert `futureAdapter` due to incompatibility
phoenix-ru Jun 24, 2026
1739e5a
4.24.14-next.2
phoenix-ru Jun 24, 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
2 changes: 1 addition & 1 deletion .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Triage
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.5
- uses: github/issue-labeler@v3.4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/issue-labeler.yml"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/issue-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 18
node-version: 24
- name: 'Run issue validator'
run: node ./.github/actions/issue-validator/index.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 10 additions & 11 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ on:
pull_request:

env:
# NODE_VER: 24.14
NODE_VER: 18.20
NODE_VER: 24.14
WORKING_DIR: packages/next-auth

defaults:
run:
working-directory: ${{ env.WORKING_DIR }}
working-directory: packages/next-auth

jobs:
build:
Expand All @@ -27,20 +26,20 @@ jobs:
name: Install pnpm
with:
run_install: false
# cache-dependency-path: ${{ env.WORKING_DIR }}/pnpm-lock.yaml
cache_dependency_path: ${{ env.WORKING_DIR }}/pnpm-lock.yaml

- name: Use Node.js ${{ env.NODE_VER }}
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
with:
node-version: ${{ env.NODE_VER }}
cache: pnpm
# cache-dependency-path: ${{ env.WORKING_DIR }}/pnpm-lock.yaml
cache-dependency-path: ${{ env.WORKING_DIR }}/pnpm-lock.yaml

- name: Install deps
run: pnpm i
- name: Install dependencies
run: pnpm i --frozen-lockfile

# - name: Build and pack
# run: pnpm prepack
- name: Build and pack
run: pnpm build

# - name: Publish package preview
# run: pnpx pkg-pr-new publish --compact
- name: Publish package preview
run: pnpm exec pkg-pr-new publish --compact --packageManager=npm,pnpm,yarn
2 changes: 1 addition & 1 deletion .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Triage
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v6
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/pr-labeler.yml"
92 changes: 68 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,77 @@
name: Release
name: Release on NPM

on:
push:
branches:
- "main"
- "beta"
- "next"
- "3.x"
- "v4"
pull_request:
workflow_dispatch:
release:
types: [published] # runs when a GitHub Release is published

permissions:
contents: read
id-token: write # required for npm provenance

env:
NODE_VER: 24.14
CI: true

defaults:
run:
working-directory: packages/next-auth

jobs:
test:
name: Test
publish:
name: Publish package from release tag
# Run only when tag is in the format `vX.Y.Z` produced by `npm version`
if: startsWith(github.event.release.tag_name, 'v')
runs-on: ubuntu-latest

steps:
- name: Init
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Check out the tag referenced by this release
uses: actions/checkout@v5
with:
fetch-depth: 2
ref: ${{ github.event.release.tag_name }}
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320
- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Setup Node.js and pnpm
uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
node-version: ${{ env.NODE_VER }}
cache: 'pnpm'
# This is required for `setup-node` to generate the registry URL into .npmrc
# See https://github.com/actions/setup-node/blob/5e2628c959b9ade56971c0afcebbe5332d44b398/action.yml#L17-L18
registry-url: 'https://registry.npmjs.org/'

- name: Verify tag matches package.json version
run: |
TAG="${{ github.event.release.tag_name }}"
PKG_VERSION=$(node -p "require('./package.json').version")
if [ "v$PKG_VERSION" != "$TAG" ]; then
echo "::error ::Tag ($TAG) does not match package.json version (v$PKG_VERSION)"
exit 1
fi

- name: Install deps
run: |
pnpm --version
pnpm install --frozen-lockfile

# Note: no build step because npm publish would run `prepublishOnly` script which builds the package

- name: Publish to npm with provenance
run: |
TAG="${{ github.event.release.tag_name }}"

# Stable release (vX.Y.Z)
if echo "$TAG" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
npm publish --provenance --access public

# Pre-release (vX.Y.Z-*)
elif echo "$TAG" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+-'; then
npm publish --provenance --access public --tag next

else
echo "Not a valid release tag ($TAG), skipping publish."
fi
22 changes: 11 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ dist
# Generated files
.docusaurus
.cache-loader
packages/next-auth/providers
packages/next-auth/src/providers/oauth-types.ts
packages/next-auth/client
packages/next-auth/css
packages/next-auth/utils
packages/next-auth/core
packages/next-auth/jwt
packages/next-auth/react
packages/next-auth/*.d.ts*
packages/next-auth/*.js
packages/next-auth/next
/packages/next-auth/providers/**
/packages/next-auth/src/providers/oauth-types.ts
/packages/next-auth/client/**
/packages/next-auth/css/**
/packages/next-auth/utils/**
/packages/next-auth/core/**
/packages/next-auth/jwt/**
/packages/next-auth/react/**
/packages/next-auth/*.d.ts*
/packages/next-auth/*.js
/packages/next-auth/next/**

# Development app
apps/dev/src/css
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
}
]
},
"packageManager": "pnpm@7.13.3",
"packageManager": "pnpm@10.32.1",
"pnpm": {
"overrides": {
"undici": "5.11.0"
Expand Down
20 changes: 20 additions & 0 deletions packages/next-auth/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
> [!WARNING]
> This package is a Nuxt-focused fork of `next-auth` for use with `@sidebase/nuxt-auth`.
> It is not intended to be a general Next.js drop-in replacement.
>
> Key differences from upstream `next-auth`:
>
> - The package is published as `@sidebase/fork-authjs` and is meant to be installed as a `next-auth` alias, for example `next-auth@npm:@sidebase/fork-authjs`.
> - Removed Next.js and React entrypoints such as `next-auth/react`, `next-auth/next`, and `next-auth/middleware`.
> - Provider imports should use the default export directly, for example `GithubProvider(...)`, not `GithubProvider.default(...)`.
> - This fork targets Nuxt/Vite bundler usage through `@sidebase/nuxt-auth`; native Node ESM imports are not the primary compatibility target.
> - Nodemailer support is limited to patched peer versions declared by this package.
>
> Install as a `next-auth` alias:
>
> ```sh
> npm install next-auth@npm:@sidebase/fork-authjs
> pnpm add next-auth@npm:@sidebase/fork-authjs
> yarn add next-auth@npm:@sidebase/fork-authjs
> ```

<p align="center">
<br/>
<a href="https://next-auth.js.org" target="_blank"><img width="150px" src="https://next-auth.js.org/img/logo/logo-sm.png" /></a>
Expand Down
62 changes: 0 additions & 62 deletions packages/next-auth/config/babel.config.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/next-auth/config/jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import "regenerator-runtime/runtime"
import "@testing-library/jest-dom"
import "whatwg-fetch"
2 changes: 1 addition & 1 deletion packages/next-auth/config/wrap-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ const pathToCss = path.join(__dirname, "../css/index.css")
const css = fs.readFileSync(pathToCss, "utf8")
const cssWithEscapedQuotes = css.replace(/"/gm, '\\"')

const js = `module.exports = function() { return "${cssWithEscapedQuotes}" }`
const js = `export default function css() { return "${cssWithEscapedQuotes}" }`
const pathToCssJs = path.join(__dirname, "../css/index.js")
fs.writeFileSync(pathToCssJs, js)
Loading
Loading