Balázs Orbán
4423673424
docs: update patreon.md
2022-10-18 21:32:51 +01:00
X
281d0948b9
docs: Typo error on Example ( #5590 )
...
Removed unwanted ")" from Example
2022-10-18 21:32:33 +01:00
Lluis Agusti
5246183c55
chore: docs updates ( #5581 )
...
* chore: fix version label
* upgrade docusaurus
* fix
* fix
* fix links, NextAuth -> NextAuth.js
* NextJS -> Next.js
* fix guides
* add docusaurus type
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-15 16:39:33 +01:00
Lluis Agusti
cb56cd44ca
refactor(docs): re-structure ( #4498 )
...
* docs: beta initial commit
* docs(oauth): finish initial tutorial
* docs(oauth-tutorial): finish guide
* docs(docusaurus): just log broken links
* docs: re-organising beta
* docs(beta): sort documents for sorting
* docs: more re-structure
* docs: more re-structure (2)
* fix: more WIP
* fix: more WIP
* chore: more updates
* chore: wip
* chore: wip
* fix lock file
* docs(getting-started): credentials
* chore: remove json-server file
* chore: cleanup
* remove mongodb from dev app
* chore: cleanup
* revert
* chore: cleanup
* chore: more cleanup changes
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-15 15:45:33 +01:00
Mischa Spiegelmock
6758e1c6d1
refactor(core): allow trusting the forwarded host header ( #5561 )
...
* Non vercel-specific way to forward host header
* Update packages/next-auth/src/utils/detect-host.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-15 14:17:20 +02:00
Thang Vu
462cca1087
chore(release): bump package version(s) [skip ci]
next-auth@v4.14.0
2022-10-14 08:52:04 +07:00
Thang Vu
ab48fcfe5b
chore: remove codeql run on main push
2022-10-14 08:37:59 +07:00
Thang Vu
fe7aaeded8
fix(ts): TS Module Augmentation ( #5556 )
...
* fix: TS Module Augmentation
* match type to AdapterUser
* refactor authorize callback
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-13 09:39:12 +07:00
Anthony Shew
c53c09ea5c
docs: options.md grammar fixes ( #5562 )
...
Update options.md
Just some grammar!
2022-10-12 20:07:53 +01:00
Matteo Giardino
4bcba45294
docs(client): typo ( #5545 )
2022-10-11 01:44:15 +01:00
David Walsh
eb5a9bad9d
chore(dev): update SvelteKit playground to 1.0.0-next.511 ( #5531 )
...
* Update playground-sveltekit to sveltekit rc 511
* Remove prettier config and format
* Fix adapter comment
2022-10-10 18:20:51 +02:00
Balázs Orbán
9a6d95c17c
chore: fix TS lint
2022-10-10 02:11:46 +02:00
Balázs Orbán
5b2fc7b570
chore: fix neo4j build
2022-10-10 02:04:09 +02:00
Balázs Orbán
6f459225fa
Merge branch 'main' of github.com:nextauthjs/next-auth
2022-10-10 00:30:25 +02:00
Balázs Orbán
f38ee19a8a
chore(dev): improve DX
2022-10-10 00:30:22 +02:00
Ranjan Purbey
38a03ed7d8
feat(providers): Add Pinterest Provider ( #5485 )
...
* feat(providers): Add Pinterest Provider
* Apply suggestions from code review
* Update pinterest.ts
* Update pinterest.ts
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-09 23:18:45 +01:00
Chris Abernethy
e1eb684cc6
fix(providers): change EVE Online to OAuth2 ( #5459 )
2022-10-10 00:16:17 +02:00
Thang Vu
777b7b2f23
chore(release): bump package version(s) [skip ci]
@next-auth/typeorm-legacy-adapter@v2.0.1
@next-auth/mikro-orm-adapter@v3.0.1
@next-auth/sequelize-adapter@v1.0.6
next-auth@v4.13.0
@next-auth/prisma-adapter@v1.0.5
@next-auth/dynamodb-adapter@v1.0.5
@next-auth/firebase-adapter@v1.0.2
@next-auth/upstash-redis-adapter@v3.0.3
@next-auth/mongodb-adapter@v1.1.1
@next-auth/neo4j-adapter@v1.0.5
2022-10-09 22:52:53 +07:00
Balázs Orbán
6132c3fa75
fix(ts): match TS types better with implementation ( #4953 )
...
* refactor(ts): export `AdapterAccount` from `next-auth/adapters`
* chore: run linter, remove prisma warning
* fix(ts): match TS with implementation closer
* remove unused import
* rename error
* add missing dev dependency
* fix type
* fix type
* fix more types and tests
* remove unused `id`
* skip upstash tests in CI
* revert some changes
* fix type
* revert some change
* revert some change
* revert some change
* revert some changes
* update lock file
* revert line change
* revert some change
* improve adapter & oauth typing
* fix test, revert
* apply review suggestion
* Add test for new rejection logics
* Update assert.test.ts
* fix: Hubspot config
* restore some ts-expect-error
* fix: tests in mirko-orm
* fix: remove redundant id: string
* fix: use ts-expect-errors
* fix: simplify provider type
* fix: normalize user options
* restore ts-expect-errors
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-10-09 21:54:01 +07:00
Usman Sabuwala (Max Programming)
94beef77e6
docs: Remove extra space in code ( #5515 )
2022-10-09 13:40:38 +02:00
Philipp
490d59dd17
fix(middleware): improve handling of custom Next.js basePath ( #5109 )
...
* fix(middleware): improve handling of custom nextjs basePath
* fix(middleware): improve extraction of nextjs base path from req.nextUrl
* adapt to req.nextUrl.basePath
* Fix indent
* Add middleware test for custom-base and simplified code a little bit
* Fix indent
* Add another test
* Rename basePath and nextJsBasePath
* Fix lint error
2022-10-09 11:31:28 +07:00
Thang Vu
26a8c5fc6d
chore: lint in apps ( #5507 )
2022-10-06 22:14:12 +01:00
Colby Fayock
e26ec74720
docs(tutorial): Creating a Custom Adapter ( #5506 )
...
* Add new item to tutorials page
* Update tutorials.md
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-06 22:12:20 +01:00
Max Peintner
d13997e140
feat(providers): ZITADEL provider ( #5479 )
...
* feat: zitadel provider
* Update packages/next-auth/src/providers/zitadel.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update packages/next-auth/src/providers/zitadel.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-06 09:44:21 +02:00
Balázs Orbán
d6efda077d
chore(release): bump package version(s) [skip ci]
2022-10-05 19:30:28 +02:00
Eric Carboni
0a4b99de3b
chore(docs): update middleware documentation link ( #5492 )
...
closes #5489
2022-10-04 19:25:56 +02:00
Daniel
2d2dfecc9d
docs(core): update documentation callbacks to include user id as example ( #5465 )
...
* Add user id to `session` and `jwt` callback
* Minor changes
- Notes on why the id is not exposed by default is already documented in the `session` section.
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-03 16:03:33 +02:00
Thang Vu
2a2c3d7a45
chore: add security guidelines to PR & issue template ( #5470 )
...
* chore: add security guidelines to pr & issue template
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-03 15:59:19 +02:00
kesoji
82786ac440
chore: remove duplicate key in pacakges/tsconfig/package.json ( #5469 )
...
fix: remove duplicate key
2022-10-02 20:51:17 +02:00
Vedant Nandwana
dfe3e02132
docs(adapters): Add TS type to prisma client ( #5463 )
...
* docs(adapters): Add prisma client docs for typescript users
Add documentation for connecting prisma client w/ prisma adapter for typescript users.
* docs(adapters): remove prismadb.js for prismadb.ts
remove prismadb.js as it is identical to the prismadb.ts
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-01 22:17:41 +02:00
Itunu Lamina
92b38ed740
docs: fix 'JWKKeySupport' typo ( #5452 )
...
update 'JWKKeySupport' typo error
2022-09-29 15:34:23 +02:00
Tom Freudenberg
97feae7916
fix(types): export SessionContext #5437 ( #5438 )
...
Co-authored-by: Lluis Agusti <hi@llu.lu >
Fixes #5437
2022-09-28 18:48:42 +02:00
Balázs Orbán
24945895e9
chore(release): bump package version(s) [skip ci]
next-auth@v4.12.2
2022-09-28 18:10:38 +02:00
Balázs Orbán
6deccf610f
fix(core): return JSON for non-HTML server route errors ( #5442 )
...
* fix(core): return JSON for non-HTML server route errors
* refactor: throw in `unstable_getServerSession`
* test: expect `unstable_getServerSession` to throw
* refactor: destructure
* fix unrelated test formatting
* catch error page
2022-09-28 17:01:39 +01:00
Etienne Martin
f770b90219
fix(react): safe use of localStorage API ( #5444 )
...
fix: safe use of localstorage
Co-authored-by: Etienne <>
2022-09-28 16:54:07 +01:00
Balázs Orbán
87f4786917
chore: bump release package
2022-09-28 13:51:41 +02:00
Balázs Orbán
191ef06471
chore(release): bump package version(s) [skip ci]
next-auth@v4.12.1
2022-09-28 13:00:32 +02:00
Philip
75e6d8f0aa
docs(adapters): Update prisma.md ( #5366 )
...
* Update prisma.md
The referenced official doc page describes how to fix the `warn(prisma-client) There are already 10 instances of Prisma Client actively running.` error in development mode.
* Update prisma.md
Implemented best practice for Prisma Client creation.
* Fixed typo in Prisma db filename.
2022-09-28 11:15:55 +01:00
Yixuan Xu
17999edd30
chore(example): fix hydrate problem in react18 ( #5439 )
2022-09-28 10:50:40 +02:00
Tom Freudenberg
54b1845e58
fix(core): don't lock next in peerDependencies #5427 ( #5430 )
...
* Update peerDependencies #5427
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-27 00:04:50 +01:00
Tomas Pozo
879faf9fab
docs(middleware): add tip on additional matcher patterns ( #5404 )
...
* docs(middleware): add tip on additional matcher patterns
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-26 13:39:32 +02:00
Balázs Orbán
3e3c36891e
docs(example): use generic type in AppProps
...
closes #5401
2022-09-25 10:57:44 +01:00
Balázs Orbán
ac5d8a9795
chore(release): bump package version(s) [skip ci]
next-auth@v4.12.0
2022-09-25 11:42:17 +02:00
Matt Oliver
965c6267e2
feat(core): make session token with DB session strategy customizable ( #5328 )
...
* Add option for custom generateSessionToken
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-25 10:26:59 +01:00
Sébastien Vanvelthem
bfc429d20b
fix: update jose to fix nextjs edge error with middleware ( #5372 )
...
fix: update jose to fix nextjs edge error
2022-09-25 15:46:02 +07:00
Balázs Orbán
2d8e910a19
chore(release): bump package version(s) [skip ci]
@next-auth/upstash-redis-adapter@v3.0.2
2022-09-25 10:29:56 +02:00
voinik
d16e04848e
fix(adapters): check token during email verification in Upstash Adapter ( #5377 )
...
* Check token during email verification
* Undo accidental linter fix
* Update index.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-25 09:10:55 +01:00
Balázs Orbán
ff3a52895b
chore(release): bump package version(s) [skip ci]
@next-auth/mikro-orm-adapter@v3.0.0
next-auth@v4.11.0
@next-auth/mongodb-adapter@v1.1.0
2022-09-25 09:42:51 +02:00
Balázs Orbán
e6e03e8842
feat(adapters): update Mikro ORM adapter schema
...
BREAKING CHANGE:
See https://github.com/nextauthjs/next-auth/pull/5316
2022-09-25 09:29:17 +02:00
Thomas Large
715aad9474
chore: Add Next to peerDeps & bump to 12.2.5 in devDeps ( #5384 )
2022-09-24 13:39:07 +07:00