Sean McEmerson
26fb89e3c4
docs: fix broken link ( #5263 )
...
Update firebase.md
Fix broken link
2022-09-01 10:44:08 +02:00
Adalberto Prado
c57a810042
docs(nextjs): change typo from js to ts ( #5217 )
2022-08-26 23:47:09 +01:00
Greg Rickaby
4676352ae0
docs(providers): Enhance Reddit App Instructions ( #5199 )
...
docs(reddit): Enhance App Instructions
Add step-by-step instructions for creating Reddit App. Add screenshot.
2022-08-22 14:50:38 +01:00
rinuya
c8780122b3
docs: typo in "unstable_getServerSession" ( #5191 )
...
fixed a typo
2022-08-22 14:44:56 +01:00
Junichi Sato
3131971e2c
fix: Use consistent error type between doc, logger and error class ( #5046 )
...
* Keep error from being logged twice
The same errors have been logged, firstly before throwing
OAuthCallbackError, later in the catch-clause of it.
This commit removes the former and lets the latter survive,
because logging functionality seems better to reside in the
same neighborhood.
* doc: Merge CALLBACK_OAUTH_ERROR to OAUTH_CALLBACK_ERROR
* doc: This particular error from openid-client comes with SIGNIN_OAUTH_ERROR
* Provide logger with `providerId`
Co-authored-by: Thang Vu <thvu@hey.com >
Co-authored-by: Thang Vu <thvu@hey.com >
2022-08-22 14:46:30 +07:00
heyitsbryanm
448ec1017a
docs(adapters): Adds warning to backup database ( #5160 )
...
prisma migrate deleted mine, hah.
2022-08-16 17:25:29 +01:00
Soumyajit Pathak
0e9404ebc1
docs: clarify cookie policies in FAQ ( #5158 )
...
* fix typo in faq
Added missing “not” in same root different subdomain config section warning text
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-08-16 17:24:50 +01:00
James
d349ae2b1b
Feature/nonce check type ( #4100 )
...
* feat: add nonce check type
* Update types import for nonce-handler.ts
* Update packages/next-auth/src/core/lib/oauth/callback.ts
Co-authored-by: Thang Vu <thvu@hey.com >
* Add further info to debug msg as per PR suggestion
* Cast OauthChecks as OpenIDCallbackChecks
* Update order of imports as per PR suggestion
Co-authored-by: Hamid Adelyar <hamid.adelyar@bjss.com >
Co-authored-by: hamidbjss <98807568+hamidbjss@users.noreply.github.com >
Co-authored-by: Thang Vu <thvu@hey.com >
2022-08-16 17:07:42 +07:00
Thang Vu
32f4d5000e
docs(faq): note default behavior for account linking ( #5113 )
2022-08-13 15:58:10 +07:00
Dragate
7f2dbfc65b
docs: Fix file paths ( #5146 )
...
* Correct auth config path
* Fix some relative paths
2022-08-12 21:36:08 +02:00
Youssef Hajjari
3e312d0df1
docs: Typo fix ( #5132 )
2022-08-11 12:02:01 +02:00
Shudhanshu Choudhary
d9167bbffe
docs: Typo fix ( #5114 )
...
* fix typo
* Update docs/docs/configuration/options.md
* fix path for mongodb file
Co-authored-by: Thang Vu <thvu@hey.com >
2022-08-08 21:15:54 +02:00
Shudhanshu Choudhary
526a6c1adc
docs: typo in configuration/options.md ( #5112 )
...
* fix typo
* Update docs/docs/configuration/options.md
Co-authored-by: Thang Vu <thvu@hey.com >
2022-08-07 15:30:37 +07:00
Eng Zer Jun
ad03a4efc1
docs(middleware): fix default value of pages option ( #5091 )
...
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2022-08-06 10:17:01 +02:00
Lluis Agusti
424af6cbc5
docs(getting-started): reword NextAuth.js + install ( #5081 )
...
* docs: update references to NextAuth
* docs(getting-started): use install snippet
2022-08-04 01:34:09 +02:00
Stephen Gbolagade
a3c6786f78
docs(getting-started): add how to install next-auth ( #5040 )
...
Contains the following squashed commits:
* Added how to install next-auth
* Update docs/docs/getting-started/example.md
* Update docs/docs/getting-started/example.md
* Updated with suggestions in mind
* Update example.md
2022-08-03 12:29:06 +02:00
Balázs Orbán
afb1fcdae3
fix(providers): add normalizeIdentifier to EmailProvider
...
* fix(providers): add `normalizeIdentifier` to EmailProvider
* docs: document `normalizeIdentifier`
* fix: allow throwing error from normalizer
* test: add e-mail tests
* chore: log provider id
* test: merge client+config jest configs and add coverage report
* test: show coverage for untested files
* fix: only allow first domain in email. Add tests
* chore: add `coverage` to tsconfig exclude list
* cleanup
* revert
Co-authored-by: Thang Vu <thvu@hey.com >
2022-08-01 13:43:19 +02:00
Daniel González Reina
e8371ab23a
docs(providers): update custom Reddit provider to v4 ( #4985 )
...
* Update custom reddit provider to v4
* Reuse RedditProvider's default options
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-07-26 10:43:45 +02:00
Visor Web Technologies
9cdeb2ce7d
docs: Fixed Typo ( #5025 )
2022-07-26 10:39:33 +02:00
Balázs Orbán
aedabc8d3f
fix: avoid redirect on always public paths ( #5000 )
...
* type safe babel config
* avoid auth redirect for `_next`
* force render default error page on user miconfig
* add slash to _next path
* use `.some`
* add docs
* change from localhost
* add favicon to public path
2022-07-24 00:45:56 +02:00
Balázs Orbán
9f2cdad457
docs: add Thang as point of contact
2022-07-22 20:31:19 +02:00
Yoann Fleury
b107ca4946
docs: update path to gitlab provider ( #4997 )
2022-07-22 19:33:03 +02:00
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