Balázs Orbán
6132c3fa75
fix(ts): match TS types better with implementation ( #4953 )
...
* refactor(ts): export `AdapterAccount` from `next-auth/adapters`
* chore: run linter, remove prisma warning
* fix(ts): match TS with implementation closer
* remove unused import
* rename error
* add missing dev dependency
* fix type
* fix type
* fix more types and tests
* remove unused `id`
* skip upstash tests in CI
* revert some changes
* fix type
* revert some change
* revert some change
* revert some change
* revert some changes
* update lock file
* revert line change
* revert some change
* improve adapter & oauth typing
* fix test, revert
* apply review suggestion
* Add test for new rejection logics
* Update assert.test.ts
* fix: Hubspot config
* restore some ts-expect-error
* fix: tests in mirko-orm
* fix: remove redundant id: string
* fix: use ts-expect-errors
* fix: simplify provider type
* fix: normalize user options
* restore ts-expect-errors
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-10-09 21:54:01 +07:00
Usman Sabuwala (Max Programming)
94beef77e6
docs: Remove extra space in code ( #5515 )
2022-10-09 13:40:38 +02:00
Colby Fayock
e26ec74720
docs(tutorial): Creating a Custom Adapter ( #5506 )
...
* Add new item to tutorials page
* Update tutorials.md
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-06 22:12:20 +01:00
Max Peintner
d13997e140
feat(providers): ZITADEL provider ( #5479 )
...
* feat: zitadel provider
* Update packages/next-auth/src/providers/zitadel.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update packages/next-auth/src/providers/zitadel.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-06 09:44:21 +02:00
Daniel
2d2dfecc9d
docs(core): update documentation callbacks to include user id as example ( #5465 )
...
* Add user id to `session` and `jwt` callback
* Minor changes
- Notes on why the id is not exposed by default is already documented in the `session` section.
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-03 16:03:33 +02:00
Thang Vu
2a2c3d7a45
chore: add security guidelines to PR & issue template ( #5470 )
...
* chore: add security guidelines to pr & issue template
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-03 15:59:19 +02:00
Vedant Nandwana
dfe3e02132
docs(adapters): Add TS type to prisma client ( #5463 )
...
* docs(adapters): Add prisma client docs for typescript users
Add documentation for connecting prisma client w/ prisma adapter for typescript users.
* docs(adapters): remove prismadb.js for prismadb.ts
remove prismadb.js as it is identical to the prismadb.ts
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-01 22:17:41 +02:00
Itunu Lamina
92b38ed740
docs: fix 'JWKKeySupport' typo ( #5452 )
...
update 'JWKKeySupport' typo error
2022-09-29 15:34:23 +02:00
Philip
75e6d8f0aa
docs(adapters): Update prisma.md ( #5366 )
...
* Update prisma.md
The referenced official doc page describes how to fix the `warn(prisma-client) There are already 10 instances of Prisma Client actively running.` error in development mode.
* Update prisma.md
Implemented best practice for Prisma Client creation.
* Fixed typo in Prisma db filename.
2022-09-28 11:15:55 +01:00
Tomas Pozo
879faf9fab
docs(middleware): add tip on additional matcher patterns ( #5404 )
...
* docs(middleware): add tip on additional matcher patterns
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-26 13:39:32 +02:00
Matt Oliver
965c6267e2
feat(core): make session token with DB session strategy customizable ( #5328 )
...
* Add option for custom generateSessionToken
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-25 10:26:59 +01:00
Steve Burtenshaw
bdd3ab2816
docs(middleware): remove reference to nested ( #5355 )
...
Fixes #5180
2022-09-16 10:30:58 +02:00
Steve Burtenshaw
d2b877fb28
docs(client): onUnauthenticated reference ( #5340 )
2022-09-14 17:26:02 +02:00
Yuriy Gromchenko
658b22d9fb
docs(atlassian): update provider scope ( #5337 )
2022-09-14 17:23:01 +02:00
Mircea Trofimciuc
a0beb02f77
feat(providers): Add HubSpot Provider ( #4633 )
...
* Typos fix
* Added HubSpot Provider
* updates to profile
* Update docs/docs/providers/hubspot.md
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
* fixed typo and outsourced required fields
* removing redirectURL from the provider config
* replaced with "client_secret_post" client method
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
2022-09-11 10:43:28 +07:00
Michael Angelo
6b3a82d1f5
docs(providers): Update v4 Strava Doc ( #5299 )
...
update
2022-09-07 17:43:13 +02:00
Cristian Muñoz
600aaaa7e6
docs: Update Getting Started Example ( #5295 )
2022-09-07 17:42:38 +02:00
Michael Angelo
f1d3bc26f9
fix(providers): convert Strava Provider to TS ( #5241 )
...
* update strava
* add localhost fallback
* lint & small updates
* Update docs/versioned_docs/version-v3/providers/strava.md
Co-authored-by: Lluis Agusti <hi@llu.lu >
* fix
* Delete yarn.lock
* Apply suggestions from code review
Co-authored-by: Lluis Agusti <hi@llu.lu >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-06 17:06:51 +01:00
Silvio
78664aab37
docs: close the callback object ( #5251 )
...
* Update role-based-login-strategy.md
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-06 17:02:46 +01:00
namacha
aeb3a44b27
docs(tutorial): fixed title of code block ( #5282 )
2022-09-02 18:32:42 +02:00
Esteban Dalel R
3b7c9886c3
docs: fix grammar error ( #5254 )
2022-09-01 12:04:30 +01:00
Daniel
fa58143c6b
docs(adapters): Update upstash-redis.md ( #5261 )
...
* Update upstash-redis.md
* Update docs/docs/adapters/upstash-redis.md
Co-authored-by: Lluis Agusti <hi@llu.lu >
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Lluis Agusti <hi@llu.lu >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-01 12:03:52 +01:00
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