Balázs Orbán
70ffa6592f
chore(release): bump package version(s) [skip ci]
2022-07-13 14:16:44 +02:00
mshd
3666e438a3
refactor(providers): convert GitHub provider to TypeScript ( #4908 )
...
* rewrite github provider in typescript
* rename md js endings
* Update packages/next-auth/src/providers/github.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* add eslint disable next line
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-07-13 14:07:24 +02:00
Aliaksei Tayanouski
cdf467eba1
fix(providers): fix VK provider and convert to TS ( #3709 )
...
* renamed vk provider file extension to .ts
* lint issue fix
* vk provider fix
* formatting fix
* remove user_id from tokens
* Update src/providers/vk.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update src/providers/vk.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* user interface additions
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-07-13 14:04:55 +02:00
nkg
1b91282402
fix(ts): use correct type for nodemailer config in the EmailProvider ( #4097 )
...
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
2022-07-12 02:50:09 +02:00
Chancellor Clark
5bd00f6ff1
feat(adapters): update Firebase adapter to use new API ( #3873 )
...
Ports and refactors `@next-auth/firebase-adapter` to use the new Adapter API. Ported from this PR: nextauthjs/adapters#183
BREAKING CHANGE:
- Renames `FirebaseAdapter` export to `FirestoreAdpater`
- This adapter now requires firebase v9+
2022-07-12 01:45:06 +02:00
William Crutchfield
af3c2dd33d
fix(ts): typo in Azure Active Directory Provider ( #4895 )
2022-07-11 18:24:09 +02:00
John Brunton
709edc5153
fix(adapters): use correct peer dependency in Sequelize adapter ( #4880 )
2022-07-11 18:23:04 +02:00
mshd
c22d613774
feat(providers): Add Wikimedia Oauth Provider ( #4813 )
...
* Add Wikimedia Oauth Provider
* add docs
* Update wikimedia.md
* Update wikimedia.md
* Update wikimedia.md
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-07-10 19:38:01 +02:00
Balázs Orbán
10bb32c479
chore(adapters): fix MikroORM adapter dependencies
2022-07-08 19:36:24 +02:00
Balázs Orbán
88ad25a16b
feat(adapters): update typeorm support ( #4844 )
...
We haven't kept up with the recent TypeORM changes, and since they are still <1, it's likely that users kept upgrading, even if there were breaking changes.
BREAKING CHANGE:
[`typeorm`](https://github.com/typeorm/typeorm ) is still in active development and has not yet published a stable release. Because of this, you can expect breaking changes in minor versions. This release of the adapter expects `typeorm@0.3.7` and is not validated against previous or future releases.
Run `npm i typeorm@latest` and make sure to read the [release notes](https://github.com/typeorm/typeorm/releases ) for breaking changes in TypeORM
2022-07-08 19:26:59 +02:00
Luiz Bett
c1f7ce3436
fix(ts): make colorScheme optional ( #4868 )
...
Documentation says if it is not passed it will be "auto", but it is mandatory on this type.
2022-07-08 19:24:30 +02:00
sean-nicholas
c59a4e04d1
fix(middleware): allow secret as option in Middleware ( #4846 )
...
* ✨ provide secret via config
* 🐛 make secret optional
* 📝 docs for middleware and env var
* 📝 recommendation at the end of paragraph
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-07-07 14:14:21 +02:00
Joshua Grant
3c210d961b
feat(providers): add Duende IdentityServer 6 ( #4850 )
...
* add duende identity server 6 provider
* Update docs/versioned_docs/version-v3/providers/duende-identity-server6.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/versioned_docs/version-v3/providers/duende-identity-server6.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update packages/next-auth/src/providers/duende-identity-server6.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update packages/next-auth/src/providers/duende-identity-server6.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/versioned_docs/version-v3/providers/duende-identity-server6.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update apps/dev/pages/api/auth/[...nextauth].ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/versioned_docs/version-v3/providers/duende-identity-server6.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/versioned_docs/version-v3/providers/duende-identity-server6.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update packages/next-auth/src/providers/duende-identity-server6.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Joshua <joshua.grant@tempcover.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-07-07 14:12:35 +02:00
Balázs Orbán
9457593038
chore: update Next.js example, bump dependencies
2022-07-07 11:31:17 +02:00
Balázs Orbán
2adfadefdc
chore: bump version
2022-07-06 11:51:37 +02:00
Balázs Orbán
ae834f1e08
feat(providers): allow styling e-mail through theme option ( #4841 )
...
* fix(core): move email handling
* fix: don' use `replaceAll`
* feat(providers): re-use `theme` for e-mail
* docs: mention `theme` option for email
* fix: don't render user e-mail in the email HTML body
* docs: add missing comma
* refactor: fix lint
* refactor: fix lint
2022-07-05 16:02:04 +02:00
Nico Domino
993c0f46b0
fix: show experimental api warning only in dev and only once ( #4816 )
...
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-07-02 21:00:11 +02:00
Balázs Orbán
163d8c66e2
chore: bump version
2022-07-01 13:53:57 +02:00
Balázs Orbán
5319dca583
fix(ts): fall back to empty string when parsing cookie
2022-07-01 12:14:48 +02:00
Balázs Orbán
cd6ccfde89
fix(core): handle invalid email
2022-07-01 12:09:57 +02:00
Balázs Orbán
ca3165bd5a
Update README.md
2022-06-29 15:55:54 +02:00
Balázs Orbán
aa527b37bf
Update README.md
2022-06-29 15:54:49 +02:00
Balázs Orbán
4bee970775
chore: bump version
2022-06-28 18:28:53 +02:00
Balázs Orbán
a911b4a40b
chore(deps): upgrade dependencies
2022-06-28 12:22:11 +02:00
Balázs Orbán
c194261617
fix(core): respect NEXTAUTH_SECRET in unstable_getServerSession ( #4774 )
...
* fix(core): respect `NEXTAUTH_SECRET` in `unstable_getServerSession`
* add `secret` tests
* add `@types/jest`
* fix tests
2022-06-27 17:00:08 +02:00
Balázs Orbán
99f5b9616f
fix: update Middleware ( #4757 )
...
* merge `main`, fix workspace dependencies
* chore(dev): use `matcher` in Middleware
* fix(middleware): support `cookies` as `Map`
* simplify
* chore(example): use new Middleware API
* chore(example): use `next-auth@latest`
* docs(middleware): document new Middleware API
* docs(ts): update inline example
* fix(ts): make cookies optional
* remove non-null assertion
2022-06-24 14:11:39 +02:00
Michael Hays
d8d9ab94cb
feat(core): pass profile to linkAccount event ( #4242 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-06-24 12:03:20 +02:00
Balázs Orbán
37c4a813e3
chore: bump version
2022-06-23 16:48:10 +02:00
Balázs Orbán
6a23ff7126
fix(build): include utils in package ( #4760 )
...
* fix: include `utils` in package
* fix: import `InternalUrl` as type
* `"emitDeclarationOnly": false`
* don't ignore `types.ts` in build
2022-06-23 16:41:01 +02:00
Balázs Orbán
23db0e68dd
chore: bump version
2022-06-23 12:30:56 +02:00
Arthur Pedroti
e03e234b86
fix(ts): infer provider type in signIn ( #4679 )
...
* fix: signIn infer provider type
The "P" type it's not passed in any props, so the result type doesn't understand and return the false type always, Adding the "P" at provider type props.
* fix: P possibly undefined
Co-authored-by: arthurpedroti@gmail.com <arthurpedroti@LAPTOP-MVAK9RM5.localdomain >
2022-06-23 12:18:32 +02:00
Thang Vu
66fb914a31
feat: introduce experimental unstable_getServerSession API ( #4116 )
...
* refactor: improve `getServerSession` API
* Apply review comment
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Apply review comment
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Apply review comment
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Apply review comment
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Apply review comment
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Apply review comment
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Address docs review
* Fix a typo
* Update lint file location
* Address review comments
* getServerSession -> unstable_getServerSession
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Dragate <spidfair@gmail.com >
* Update packages/next-auth/package.json
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Dragate <spidfair@gmail.com >
2022-06-23 12:15:15 +02:00
Matthew Francis Brunetti
172813f987
docs(adapters): fix references to deprecated adapters repo ( #4737 )
2022-06-22 18:12:07 +02:00
Gal Schlezinger
73d489beac
fix(edge): support request.cookies as a map ( #4745 )
...
in next Next.js versions, NextRequest.cookies will be an instance of NextCookies which is
some kind of a Map, instead of a plain object.
This commit checks whether there's a `get` function in req.cookies, and acts accordingly,
to make sure we will support newer Next.js versions with Edge Functions/Middleware
2022-06-21 20:20:48 +02:00
Balázs Orbán
e498483b23
test: add test for invalid callbackUrl handling
2022-06-20 10:38:21 +02:00
Balázs Orbán
2469e44572
feat: allow standard Request in NextAuthHandler ( #4704 )
...
* chore: upgrade dev dependencies
* chore: use SWC for test transforms
* feat: allow standard `Request` as `NextAuthHandler` argument
* test: add initial core tests
* chore: ignore `tests` in build
* chore: fix lint
* chore: move `lib` to `utils`
* add body parsing, simplify
* fix tests
* chore: use `NPM_TOKEN_PKG` for experimental release
2022-06-14 12:25:07 +02:00
ike
92dfc3c8b0
fix(providers): use client_secret_post auth method for Instagram ( #4705 )
2022-06-14 00:23:23 +02:00
Balázs Orbán
8c5d9faad6
chore: bump versions
...
[skip ci]
2022-06-14 00:10:16 +02:00
Balázs Orbán
49a8d51f79
fix: don't show error on relative callbackUrl
...
fixes #4700
2022-06-12 14:37:04 +02:00
Balázs Orbán
c0d251731d
chore: bump version
2022-06-10 14:52:05 +02:00
Balázs Orbán
25517b7315
fix: handle invalid callbackUrl
2022-06-10 13:52:00 +02:00
Tom Freudenberg
4daa63d5e1
feat(callback): return always status code 401 on error ( #4601 )
2022-06-09 18:43:50 +02:00
Chris Betz
81afeef194
feat(provider): Add United Effects provider ( #4546 )
...
* Adding United Effects as a provider
* Update packages/next-auth/src/providers/united-effects.ts
* returning name and image as null in profile response
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-06-04 00:03:23 +02:00
Balázs Orbán
e4ee520b4a
fix(ts): allow getToken in getServerSideProps ( #4659 )
2022-05-31 19:05:35 +02:00
Balázs Orbán
358b80d4ce
feat(providers): make issuer configurable on Salesforce ( #4658 )
2022-05-31 19:02:35 +02:00
Balázs Orbán
0a7a916228
fix(ts): remove unused type ( #4657 )
2022-05-31 18:55:34 +02:00
Balázs Orbán
612c35e8c2
Revert "fix(ts): signIn infer provider type ( #4623 )" ( #4655 )
...
This reverts commit 46089eb5ae .
2022-05-31 18:44:54 +02:00
Arthur Pedroti
46089eb5ae
fix(ts): signIn infer provider type ( #4623 )
...
The "P" type it's not passed in any props, so the result type doesn't understand and return the false type always, Adding the "P" at provider type props.
2022-05-31 18:29:34 +02:00
42Atomys
7d8cc70faf
feat(middleware): support custom cookieName ( #4385 )
...
* feat: Add the support of custom cookieName on the next-auth/middleware
* chore: Only accept used params based on NextAuthConfig
* docs: Remove duplicated docs
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-05-31 18:29:15 +02:00
Thanh Nhan
75602a3f04
fix(middleware): use relative URL for sign-in page callbackUrl ( #4534 )
...
* Use relative URL for middleware's signin callbackUrl
* Include params to callbackUrl if any
* For testing purpose, append params to existing link for test instead of create another one
* Update apps/dev/components/header.js
Co-authored-by: CODY Mai <nhan.mai@shiftasia.com >
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
2022-05-31 18:14:24 +02:00