Thang Vu
9f900befe6
chore(release): bump version [skip ci]
next-auth@4.23.1
2023-08-16 14:43:26 +07:00
Gabriel Villenave
09c2a89df8
fix: use default submodules export in package.json ( #8330 )
...
Use `default` submodules export in `package.json` to ensure compatibility, as specified in https://nodejs.org/api/packages.html#conditional-exports
2023-08-16 09:33:07 +02:00
Balázs Orbán
20c3fe3331
fix(ts): correctly expose next-auth/adapters
...
Fixes https://github.com/nextauthjs/next-auth/issues/8283#issuecomment-1675939280
2023-08-12 16:37:18 +02:00
Manuel Cattelan
e26f500d18
docs(providers): add warning for gitlab provider ( #8292 )
2023-08-11 13:56:56 +02:00
Balázs Orbán
494d16e54d
chore(release): bump version [skip ci]
next-auth@4.23.0
2023-08-11 13:43:03 +02:00
Balázs Orbán
5a8aa2e5e5
feat(providers): add Passage by 1Password
2023-08-11 13:39:52 +02:00
Balázs Orbán
05ff6ae221
fix(ts): correctly export submodule types
2023-08-11 11:31:35 +02:00
Jonathan Edenström
1fbc684f53
fix: sort cookie chunks correctly ( #8284 )
2023-08-10 12:17:41 +01:00
Balázs Orbán
124be4fb1f
chore(release): bump version [skip ci]
next-auth@4.22.5
2023-08-08 19:21:49 +02:00
Balázs Orbán
3b0128c3ca
fix(ts): match next-auth/adapter & @auth/core/adapters
2023-08-08 19:20:30 +02:00
Balázs Orbán
36b97aafb8
docs: amplify note
2023-08-08 18:00:41 +02:00
Thang Vu
175d37499b
chore(release): bump version [skip ci]
next-auth@4.22.4
2023-08-06 22:52:13 +07:00
Thang Vu
08a6835a70
fix: don't return res.end() in api handler ( #8244 )
...
Move #8069 to v4 branch
co-authored by @maritz
Co-authored-by: maritz <159633+maritz@users.noreply.github.com >
2023-08-06 22:38:57 +07:00
Thang Vu
448a11ff0a
chore: add turbo env vars
2023-08-06 21:47:08 +07:00
Thang Vu
f39f9708bd
fix(ts) : add missing function overload for Route Handler ( #8236 )
...
Pick up https://github.com/nextauthjs/next-auth/pull/8211 & tweak some changes
Co-authored-by: Max Quinn <max.t.quinn@gmail.com >
2023-08-05 19:57:29 +07:00
Matt Azlin
6d98b8b33c
docs: fixing broken link in documentation ( #8208 )
2023-08-03 16:11:11 +02:00
Balázs Orbán
ef7ec044c5
docs: clarify getServerSession
2023-08-03 16:05:32 +02:00
Balázs Orbán
e89e3143d7
docs: move unstable_getServerSession
2023-08-03 16:03:48 +02:00
Noam Al Rifaï
12f0795a0a
docs: Typo fixed ( #8206 )
2023-08-03 16:01:58 +02:00
Trent
9e0036bc73
docs(providers): mention HTTP-based Email guide ( #8214 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-08-03 15:57:57 +02:00
MohammadAli Saeidi
27aa5ef09b
docs: Update object key "email" to "username" ( #8113 )
2023-07-25 14:45:38 +02:00
Thang Vu
903bd6fac9
fix: remove RSC warning in getServerSession ( #8108 )
2023-07-25 12:13:51 +02:00
Ricardo van Noort
998b7a0db4
docs: Update upgrade-to-v4.md ( #8123 )
2023-07-25 12:12:57 +02:00
Thang Vu
465644f9e4
fix(ts): SignInResponse.error type ( #8109 )
...
Co-authored-by: smcg468 <49883535+smcg468@users.noreply.github.com >
2023-07-22 12:39:23 +07:00
GhibliMagic
d12bd5a799
doc: Add a guide on sending magic links to existing users only ( #7663 )
2023-07-22 11:57:52 +07:00
Tony Worm
3897d47db2
docs: Update refresh-token-rotation.md - fix example client code filename ( #8088 )
2023-07-20 01:09:06 +02:00
Doug
e44dccc42d
docs(providers): updated docs with missing account attribute ( #8084 )
2023-07-19 15:24:41 +02:00
Balázs Orbán
733a81bd3a
chore(release): bump version [skip ci]
next-auth@4.22.3
2023-07-18 22:53:27 +02:00
Balázs Orbán
f06f3bbc96
chore(release): bump version [skip ci]
next-auth@4.22.2
2023-07-18 15:53:30 +02:00
Thang Vu
aea27a1fa8
fix: remove unused TS types
2023-07-16 22:32:55 +07:00
Thang Vu
bd37c55241
fix(ts): adapter interface ( #8054 )
2023-07-16 20:47:18 +07:00
Rexford Essilfie
169a5230db
fix(ts): add overloads to withAuth middleware ( #7999 )
...
* fix(ts): add overloads to withAuth middleware
* fix: allow extends Request on returned middleware handler
* chore: simplify return type for withAuth returning middleware
* chore: remove withAuth overloads generics
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-07-12 10:49:50 +07:00
Francis Gulotta
f48eb0478e
fix(providers): fix nodemailer/required types ( #7950 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-07-11 12:57:37 +02:00
Stephen Cronin
b25a090c17
docs: fix getServerSession API Routes example ( #7978 )
...
* Fix Next.js getServerSession API Routes example
Example API code threw an error in Next.js. Fixed the example to work.
* Update docs/docs/configuration/nextjs.md
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-07-09 14:03:02 +02:00
Matt Jared
0167e9368b
docs: Update example.md ( #7879 )
2023-06-27 14:29:17 +02:00
Mikalai S
dcb576f01b
docs: Mention a possible cause of ResourceNotFound issue ( #7758 )
2023-06-09 14:56:55 +02:00
Balázs Orbán
9417822a41
Update oauth.ts
...
Closes #7608
Co-authored-by: aaazzz <akrm@hey.com >
2023-06-01 11:17:23 +01:00
Balázs Orbán
14f8f0cb58
docs: rephrase
...
Closes #7531
Co-authored-by: Trey Speakman
<100887275+treyspeakman@users.noreply.github.com >
2023-05-19 00:58:27 +01:00
Nick Radford
212272a839
docs: Update sub-bullet about vercel deployment specifics ( #7537 )
2023-05-14 12:59:49 +02:00
Balázs Orbán
a8e8b7542c
docs: Update initialization.md
2023-05-11 23:30:53 +01:00
browny
14cecb9b73
docs: update react docs link ( #7521 )
2023-05-11 14:45:39 +02:00
Ivan Medina
28bec0fbcc
docs: Update client.md ( #7458 )
2023-05-06 12:09:10 +01:00
Thang Vu
bc683a5b72
chore: merge changes back to v4 ( #7430 )
...
* docs: Remove --save from install command (#7277 )
Remove --save from install command
--save is no longer needed on npm install.
* chore: fix "Contributing guide" link (#7279 )
* fix: detect origin when `instanceof Request` check fails (#7303 )
* docs: Update Clerk sponsorship URL (#7305 )
- Change Clerk URL from `https://clerk.dev ` to `https://clerk.com `
- Fix alt from copy/paste
* chore: bump react types
* fix(docs): fix default `maxAge` formula (#7406 )
* Update pnpm-lock.yaml
* sync package.json change
---------
Co-authored-by: Chris Hayes <6013871+Christopher-Hayes@users.noreply.github.com >
Co-authored-by: Raul <57044803+Leprekus@users.noreply.github.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Nick Parsons <nparsons08@gmail.com >
Co-authored-by: Victor <saptefrativictor@gmail.com >
2023-05-04 20:05:33 +01:00
Sebastián Iturra
e7b8597f73
docs: Update email.md ( #7391 )
2023-04-28 13:53:27 +01:00
Kjetil Hårtveit
5c89a21bfa
docs: mention caching in App Router ( #7206 )
...
I spent at least a day figuring out why my tRPC caches were all [MISSing](https://vercel.com/docs/concepts/edge-network/caching#miss ) even though I set the correct Cache-Control headers (my stack: NextAuth, NextJS, tRPC, Vercel). I wish information could be placed where appropriate so that others don't need to debug like I had too.
I realise it's a bit convoluted as tRPC suggested I could fetch the session in the context and then use it throughout my routers. It was not obvious to me that this caused all the public caches to fail, even on query procedures that were not using the session. The caches were MISSing because `getServerSession` refreshes the cookies via the `set-cookie` header and [Vercel won't allow this](https://vercel.com/docs/concepts/functions/serverless-functions/edge-caching ). I'm not saying the refreshing of cookies is wrong, it's a nice feature, and it's kind of handy this implicitly means Vercel doesn't cache.
So how I got here has many causes and it's futile to find anyone to "blame". The factors are:
- tRPC suggests `getSession()` in their [documentation for context](https://trpc.io/docs/server/context ).
- I see tRPC does not suggest `getSession()` in the page for [caching](https://trpc.io/docs/server/caching ) which is correct but wasn't obvious to me what I had done wrong.
- my misunderstanding about the link between session and personalized data (it makes sense to me now but it wasn't that obvious to see the link: get session means no public cache)
2023-04-26 13:05:01 +01:00
Andreas Jagiella
6e9c8b5b3c
docs(providers): mention non-standard properties ( #7290 )
...
~ needed database entries
~ type of redirect uri
2023-04-26 13:03:08 +01:00
Ilya
91a9e5f601
docs(providers): update default vk provider version and options link ( #7354 )
...
Update version by default and options link
Now by default VK provider uses `5.131` version.
And provider options link changed to .ts.
2023-04-26 12:58:09 +01:00
Balázs Orbán
cb916f4848
docs: Update typescript.md
...
closes #7288
2023-04-17 21:01:11 +01:00
muoi
8259cd4fc6
docs : fix typo ( #7258 )
...
Update link to Kakao Provider options
2023-04-17 10:35:15 +01:00
Dorijan Hašpl
7a8c0068c4
docs: mention Route Handler initialization in getting started ( #7213 )
...
Updated the Getting Started documentation file (section about adding NextAuth API routes) to refer to another documentation section where the NextAuth API routes are handled using the new App Router and Route Handlers
2023-04-12 11:39:09 +01:00