Balázs Orbán
3b0128c3ca
fix(ts): match next-auth/adapter & @auth/core/adapters
2023-08-08 19:20:30 +02: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
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
Thang Vu
903bd6fac9
fix: remove RSC warning in getServerSession ( #8108 )
2023-07-25 12:13:51 +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
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
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
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
Balázs Orbán
6edb6ddaaf
fix: respect protocol too, when host is trusted ( #7214 )
...
* fix: respect protocol too when host is trusted
* simplify
2023-04-12 11:30:20 +01:00
Balázs Orbán
c261af4695
feat: support Route Handlers ( #6777 )
...
* feat: support Route Handlers
* update dev app
* init NextAuth via Route Handler in dev app
* import as type
* fix labeler
* default secret to `NEXTAUTH_SECRET`
* handle redirects
* support advanced init in Route Handlers
* use port 3000 for docs dev
* document initialization with Route Handlers
* upgrade to latest `next`
* upgrade to 13.3.0
* remove workaround
* cleanup
2023-04-09 10:51:49 +01:00
Julius Marminge
ec8a34308b
fix(ts): revert session callback type changes ( #7136 )
...
Fixes https://github.com/t3-oss/create-t3-app/issues/1328
2023-04-03 12:14:24 +02:00
Thang Vu
d8901777bf
fix: revert #6814 ( #7125 )
2023-04-02 11:27:52 +02:00
Balázs Orbán
319f2ce165
fix(ts): mark id in updateUser as always defined
...
Closes #7027
2023-03-29 14:16:58 +02:00
Balázs Orbán
2d907f0004
feat: make it possible to update the session ( #7056 )
2023-03-29 05:43:48 +02:00
Abdulaziz Askaraliev
86d031faba
fix(providers): add types for yandex provider ( #7073 )
...
* fix(providers): yandex add types
* chore(providers): yandex added comments
* Update yandex.ts
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-03-27 00:39:54 +01:00
Peter
8aa1789697
fix(oauth): allow jwks_uri to be set for non-wellKnown ( #7014 )
...
fix(oauth): allow jwks_uri to be set for non-wellKnown flow by passing jwks_endpoint
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-03-25 18:57:22 +07:00
Balázs Orbán
ab0857a99e
chore: correct ts import
2023-03-02 20:32:28 +01:00
Balázs Orbán
e6590ffc20
fix: unify checks
2023-03-02 20:08:28 +01:00
Balázs Orbán
2432ce9001
fix: throw error on missing state
2023-03-02 01:50:05 +01:00
Thang Vu
2fb34bab51
feat: priortize NEXTAUTH_URL_INTERNAL ( #6814 )
2023-02-25 18:51:16 +00:00
Raúl Marín
5ecf20a804
fix: Add missing logo to Default Signin Page ( #6728 )
...
fix(packages\next-auth\src\core\pages\signin.tsx): add missing logo
2023-02-17 10:23:10 +07:00
Balázs Orbán
43d66fcb23
fix(ts): stop using typeof + generic together ( #6595 )
2023-02-02 02:15:43 +01:00
Thang Vu
5b1555ed97
feat: redesign all default pages
...
sync from core via #5825
Co-Authored-By: Rein Undheim <46612252+Gawdfrey@users.noreply.github.com >
2023-01-31 17:40:46 +07:00
Vu Van Dung
0ed07b31b6
fix(ts): correctly type unstable_getServerSession ( #6560 )
...
* fix: type of unstable_getServerSession
Signed-off-by: Vu Van Dung <me@joulev.dev >
* Apply suggestions from code review
---------
Signed-off-by: Vu Van Dung <me@joulev.dev >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-01-30 12:10:26 +00:00
Balázs Orbán
8df6d5b469
feat: make generateSessionToken awaitable ( #6536 )
...
Co-authored-by: @HommeSauvage
2023-01-28 12:19:32 +00:00
Balázs Orbán
0bcaeca369
feat: remove unstable_ prefix getServerSession ( #6535 )
...
* feat: remove `unstable_` prefix from `getServerSession`
* fix test
* fix lint
2023-01-28 12:12:00 +00:00
Balázs Orbán
4f5ddbcb76
fix(oauth1): pass oauth_token_secret ( #6534 )
...
* Pass oauth_token_secret in OAuth 1.0 calls
* simplify
* simplify
---------
Co-authored-by: dawidos234 <dawidos234@gmail.com >
2023-01-28 09:44:23 +00:00
Balázs Orbán
5a128db369
fix(providers): add slash to default logo urls
...
fixes #6495
2023-01-24 14:03:40 +01:00
Balázs Orbán
53fa46744c
chore: match core
2023-01-24 02:40:29 +01:00
StachowiakDawid
451eaaabd2
fix: Allow adding own logo to provider ( #6465 )
2023-01-24 02:35:30 +01:00
Balázs Orbán
09bcc1d504
fix(providers): default image to null for Azure AD
...
Fixes #6482
2023-01-24 02:24:35 +01:00
Balázs Orbán
400d0f1842
fix: move logos
2023-01-07 08:18:35 +01:00
Balázs Orbán
a83573ed2f
fix(next-auth): revert to 4.17 to fix host issues but keep other fixes ( #6132 )
...
* fix(next-auth): revert to 4.17 and replay other fixes
* revert line change
* replay some TS changes to reduce diff
* fix tests
* revert more renames
* revert renames
* fix test, cleanup
2022-12-21 23:48:38 +00:00
Mark Scerri
6242aa7ecb
fix: incorrect signin redirect url on session required ( #5976 )
...
Fixes https://github.com/nextauthjs/next-auth/issues/5296
2022-12-19 14:26:02 +01:00
Balázs Orbán
2875b49f11
fix(core): preserve incoming set cookies ( #6029 )
...
* fix(core): preserve `set-cookie` by the user
* add test
* improve req/res mocking
* refactor
* fix comment typo
2022-12-12 13:47:34 +00:00
Balázs Orbán
5259d247a2
fix(next): correctly bundle next-auth/middleware
...
fixes #6025
2022-12-12 11:59:37 +01:00
Balázs Orbán
62f672ae30
fix(core): host detection/NEXTAUTH_URL ( #6007 )
...
* rename `host` to `origin` internally
* rename `userOptions` to `authOptions` internally
* use object for `headers` internally
* default `method` to GET
* simplify `unstable_getServerSession`
* allow optional headers
* revert middleware
* wip getURL
* revert host detection
* use old `detectHost`
* fix/add some tests wip
* move more to core, refactor getURL
* better type auth actions
* fix custom path support (w/ api/auth)
* add `getURL` tests
* fix email tests
* fix assert tests
* custom base without api/auth, with trailing slash
* remove parseUrl from assert.ts
* return 400 when wrong url
* fix tests
* refactor
* fix protocol in dev
* fix tests
* fix custom url handling
* add todo comments
2022-12-11 14:48:28 +00:00
Balázs Orbán
2c669b32fc
fix(core): correct status code when returning redirects ( #6004 )
...
* fix(core): correctly set status when returning redirect
* update tests
* forward other headers
* update test
* remove default 200 status
2022-12-11 12:55:16 +00:00
Balázs Orbán
5c4a9a697d
fix(core): handle Request -> Response regressions ( #5991 )
...
* fix(next): don't override `Content-Type` by `unstable_getServerSession`
* fix(core): handle `,` while setting `set-cookie`
2022-12-08 23:29:25 +00:00
Balázs Orbán
157269e0fb
fix(core): throw error if no action can be determined
2022-12-08 05:10:26 +01:00
Balázs Orbán
221bc8e99c
fix(core): add protocol if missing
2022-12-08 04:54:42 +01:00
Balázs Orbán
f3291025e6
fix(core): properly construct url ( #5984 )
2022-12-08 04:33:20 +01:00
Branden Cash
b19b2bcb3f
fix(core): don't mutate authOptions in unstable_getServerSession ( #5973 )
2022-12-07 22:04:53 +01:00
Balázs Orbán
0fcc6a0d04
refactor: more renames
2022-12-05 13:38:29 +01:00
Balázs Orbán
cbf8c7a59f
refactor: rename
2022-12-03 15:51:38 +01:00
Balázs Orbán
0e6c51adec
refactor: rename
2022-12-03 15:41:39 +01:00