Balázs Orbán
0ea96796b2
fix: improve logger ( #4970 )
...
* fix: add debug warning, only show warnings once
* fix: prefer `debug` for details
* remove url
* test: fix tests
* Update docs/docs/errors.md
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
* Update callback.ts
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
2022-07-21 16:00:16 +02:00
Misha Kaletsky
8ec940bd6a
docs: highlight archiving of next-auth/react-query ( #4964 )
...
* docs: highlight archiving of next-auth/react-query
project is read-only and author said users should just copy-paste the implementation: https://github.com/nextauthjs/react-query/issues/7#issuecomment-923099050
* Update docs/docs/getting-started/client.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/getting-started/client.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-07-21 13:59:46 +02:00
Thang Vu
1a79a1a612
docs: FAQ framework-agnostic & session sharing ( #4962 )
...
Split a FAQ into two parts:
Before:
- Can I use NextAuth.js with a website that does not use Next.js?
After:
- Can I use NextAuth.js with a framework different than Next.js?
- Can session generated by NextAuth.js be used by another website?
2022-07-19 17:29:54 +02:00
Balázs Orbán
f62a985848
docs: clarify getToken and secret
...
Ref: #4954
2022-07-17 04:39:47 +02:00
cobbvanth
9784dfb631
docs: Remove import of "useSession" from wrong location ( #4952 )
...
This tutorial snipped erroneously imports useSession from "next-auth/next", when it actually resides in "next-auth/react".
2022-07-16 23:06:00 +02:00
Thang Vu
3f6d99e8df
chore: add Thang to contributor ( #4944 )
2022-07-15 12:34:36 +02:00
Balázs Orbán
46eedee3c8
fix(ts): remove TS workaround for withAuth ( #4926 )
...
* fix(ts): improve Middleware types
* docs: remove TS workaround for Middleware
* ignore lint
* simplify
2022-07-15 04:39:15 +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
Sagar Gajare
839b9108ea
docs: provider link fixed ( #4913 )
2022-07-13 01:39:13 +02:00
Balázs Orbán
83a974d455
docs: update Middleware docs
...
closes #4867
2022-07-12 17:19:23 +02:00
Nico Domino
8f54b8f729
docs: upgrade docusaurus-plugin-npm2yarn2pnpm ( #4909 )
2022-07-12 16:52:21 +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
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
Misha Kaletsky
e317b16cd2
docs: getToken link ( #4884 )
...
fix(docs): getToken link
without `/` it's considered a relative link so goes to https://next-auth.js.org/configuration/tutorials/securing-pages-and-api-routes#using-gettoken which doesn't exist.
2022-07-09 22:46:38 +02:00
Rudy Boutte
2edc79ed2b
fix(docs): options page link ( #4876 )
2022-07-09 12:56:20 +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
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
Rudy Boutte
384edbab3b
docs: Added documentation on how to use a custom base path in NextAuth ( #4858 )
2022-07-07 00:34:12 +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
4d4c276627
docs: replace npm2yarn with npm2yarn2pnpm docusaurus plugin ( #4805 )
...
* feat: rm npm2yarn add npm2yarn2pnpm plugin
* fix: pnpm-lock.yaml
* chore: test change
* fix: update npm2yarn2pnpm usage
* fix: package.json mistake packages added
* fix: pnpm-lock.yaml
* fix: test debug output
* fix: named import npm2yarn2pnpm
* chore: rm debug:true
* fix: change require statement
* Update pnpm-lock.yaml
* Update pnpm-lock.yaml
* Update pnpm-lock.yaml
* Update pnpm-lock.yaml
* Delete pnpm-lock.yaml
* add pnpm-lock.yaml
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-07-05 11:56:44 +02:00
Junichi Sato
f4c0d5ab5d
docs: Correct grammatical error ( #4836 )
2022-07-05 00:25:46 -04:00
Nico Domino
01cd6b0f7b
docs: fix unstable_getServerSession arguments ( #4815 )
...
* chore(docs): fix unstable_getServerSession arguments
* chore: add authOptions import
2022-07-03 23:27:37 +02:00
Nico Domino
89d91ea282
chore: update docs regarding new server session API ( #4776 )
...
* chore: update docs regarding new server session API
* fix: add note about unstable_ API prefix
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-06-30 05:18:52 -04:00
Richard
f3233641d0
docs: not -> now ( #4783 )
...
I assume this is meant to say "is now secured" ?
2022-06-28 19:12:48 +02:00
Balázs Orbán
80a4f50be2
chore: upgrade Docusaurus ( #4782 )
2022-06-28 12:55:43 +02:00
Ofek Asido
1f4ffbaefe
docs: wrong semicolon placement ( #4781 )
2022-06-28 12:45:48 +02:00
Nico Domino
5fdd8483d8
chore: add security headers to docs vercel.json ( #4766 )
2022-06-24 14:30:48 +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
Nico Domino
e8827cbf45
chore(docs): update securing pages tutorial ( #3982 )
...
Co-authored-by: Lluis Agusti <hi@llu.lu >
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
2022-06-24 10:02:26 +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
ml4den
87d1a7af6d
docs(providers): Change env names ( #4753 )
...
Proposing to match the env names to what is in the example [...nextauth].ts
2022-06-22 22:23:04 +02:00
Guillermo Villegas Gray
46e467a7cb
docs(providers): typo in slack.md ( #4733 )
...
typo in slack.md, thanks for the warning though!
2022-06-22 18:06:59 +02:00
Cody Ogden
7cf49566a6
docs(providers/workos.md): Update reference link. ( #4721 )
...
The file extension changed to `.ts`.
2022-06-16 18:38:34 +02:00
Balázs Orbán
25517b7315
fix: handle invalid callbackUrl
2022-06-10 13:52:00 +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
Or Linzer
008f29e6f8
docs(next): Update config comment ( #4664 )
...
* Update Custom JWT decode method
* Update docs/docs/configuration/nextjs.md
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-06-03 23:53:19 +02:00
Shubham Jain
5b8a619cd0
docs: Remove trailing '/' from Authentik issuer example ( #4646 )
...
The Authentik provider already adds a `/` after the `issuer`, so this creates a double slash that causes a NextAuth `SIGNIN_OAUTH_ERROR` ("expected 200 OK, got: 301 Moved Permanently").
2022-05-31 18:13:32 +02:00
Alvin Li
16622f6428
feat(middleware): support custom jwt.decode ( #4210 )
...
* feat: custom jwt decode method for middleware
* Update docs/docs/configuration/options.md
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-05-31 17:45:37 +02:00
Nico Domino
cfc0a55080
docs: add note to ensure pages actually exist ( #4618 )
...
* chore(docs): add note to ensure pages actually exist
* Update docs/docs/configuration/options.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/configuration/pages.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-05-25 14:33:05 +02:00
mohammed hussam
dda4e0a7d8
docs: update blog link ( #4591 )
...
Authentication Patterns for Next.js is moved official next.js docs https://nextjs.org/docs/authentication#authentication-patterns
2022-05-20 19:48:52 +02:00
PalanikannanM
374f886e84
chore(tutorial): fixing the expires_in method of account object to expires_at ( #4540 )
...
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-05-19 22:28:07 +02:00
Ephraim Atta-Duncan
db188b872f
docs: update screenshot ( #4571 )
2022-05-17 10:10:17 +02:00
Matías Aguilera
2838dd7e0f
docs: fix font size for small devices ( #4558 )
...
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-05-14 23:55:03 +02:00
Imamuzzaki Abu Salam
08f6b31e41
missing "role" in the first sentence ( #4560 )
2022-05-14 09:36:01 +02:00
rgsthethird
602668f93c
Small grammar fix ( #4531 )
...
'this environment variable must be set', instead of 'this environment variables must be set'.
2022-05-13 12:20:55 +02:00
Nico Domino
70d59bb6e7
chore(docs): fix formatting / syntax ( #4523 )
2022-05-07 12:19:42 +02:00
Nico Domino
0c86d5a370
chore(docs): rm sandpack - unused ( #4521 )
2022-05-07 00:18:00 +02:00
Glenn Streetman
0ac8773c2b
docs(tutorial): Adding role based login to database session strategy ( #4449 )
...
Co-authored-by: Lluis Agusti <hi@llu.lu >
Co-authored-by: ndom91 <yo@ndo.dev >
2022-05-07 00:13:42 +02:00