Thang Vu
26a8c5fc6d
chore: lint in apps ( #5507 )
2022-10-06 22:14:12 +01: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
Balázs Orbán
d6efda077d
chore(release): bump package version(s) [skip ci]
2022-10-05 19:30:28 +02:00
Eric Carboni
0a4b99de3b
chore(docs): update middleware documentation link ( #5492 )
...
closes #5489
2022-10-04 19:25:56 +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
kesoji
82786ac440
chore: remove duplicate key in pacakges/tsconfig/package.json ( #5469 )
...
fix: remove duplicate key
2022-10-02 20:51:17 +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
Tom Freudenberg
97feae7916
fix(types): export SessionContext #5437 ( #5438 )
...
Co-authored-by: Lluis Agusti <hi@llu.lu >
Fixes #5437
2022-09-28 18:48:42 +02:00
Balázs Orbán
24945895e9
chore(release): bump package version(s) [skip ci]
next-auth@v4.12.2
2022-09-28 18:10:38 +02:00
Balázs Orbán
6deccf610f
fix(core): return JSON for non-HTML server route errors ( #5442 )
...
* fix(core): return JSON for non-HTML server route errors
* refactor: throw in `unstable_getServerSession`
* test: expect `unstable_getServerSession` to throw
* refactor: destructure
* fix unrelated test formatting
* catch error page
2022-09-28 17:01:39 +01:00
Etienne Martin
f770b90219
fix(react): safe use of localStorage API ( #5444 )
...
fix: safe use of localstorage
Co-authored-by: Etienne <>
2022-09-28 16:54:07 +01:00
Balázs Orbán
87f4786917
chore: bump release package
2022-09-28 13:51:41 +02:00
Balázs Orbán
191ef06471
chore(release): bump package version(s) [skip ci]
next-auth@v4.12.1
2022-09-28 13:00:32 +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
Yixuan Xu
17999edd30
chore(example): fix hydrate problem in react18 ( #5439 )
2022-09-28 10:50:40 +02:00
Tom Freudenberg
54b1845e58
fix(core): don't lock next in peerDependencies #5427 ( #5430 )
...
* Update peerDependencies #5427
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-27 00:04:50 +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
Balázs Orbán
3e3c36891e
docs(example): use generic type in AppProps
...
closes #5401
2022-09-25 10:57:44 +01:00
Balázs Orbán
ac5d8a9795
chore(release): bump package version(s) [skip ci]
next-auth@v4.12.0
2022-09-25 11:42:17 +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
Sébastien Vanvelthem
bfc429d20b
fix: update jose to fix nextjs edge error with middleware ( #5372 )
...
fix: update jose to fix nextjs edge error
2022-09-25 15:46:02 +07:00
Balázs Orbán
2d8e910a19
chore(release): bump package version(s) [skip ci]
@next-auth/upstash-redis-adapter@v3.0.2
2022-09-25 10:29:56 +02:00
voinik
d16e04848e
fix(adapters): check token during email verification in Upstash Adapter ( #5377 )
...
* Check token during email verification
* Undo accidental linter fix
* Update index.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-25 09:10:55 +01:00
Balázs Orbán
ff3a52895b
chore(release): bump package version(s) [skip ci]
@next-auth/mikro-orm-adapter@v3.0.0
next-auth@v4.11.0
@next-auth/mongodb-adapter@v1.1.0
2022-09-25 09:42:51 +02:00
Balázs Orbán
e6e03e8842
feat(adapters): update Mikro ORM adapter schema
...
BREAKING CHANGE:
See https://github.com/nextauthjs/next-auth/pull/5316
2022-09-25 09:29:17 +02:00
Thomas Large
715aad9474
chore: Add Next to peerDeps & bump to 12.2.5 in devDeps ( #5384 )
2022-09-24 13:39:07 +07:00
Jonas Strassel
902bf92a85
fix(mikro-orm): re-enable tests ( #5316 )
2022-09-21 23:36:23 +07:00
Eng Zer Jun
44f2a47e6e
fix(middleware): use includes() for NextAuth pages ( #5104 )
...
* fix(middleware): use `includes()` for NextAuth pages
Some users could be setting their `signIn` and `error` pages option to
`/` to disable the automatically generated pages, as suggested in [1].
This commit reverts the behaviour for matching `signIn` and `error`
pages in `handleMiddleware` to pre-v4.10.3.
```
const signInPage = "/"
const errorPage = "/"
const publicPaths = [signInPage, errorPage, "/_next", "/favicon.ico"]
// pathname = "/" will return true
publicPaths.some((p) => pathname.startsWith(p))
```
Fixes: aedabc8d ("fix: avoid redirect on always public paths")
Reference [1]: https://github.com/nextauthjs/next-auth/discussions/2330#discussioncomment-1678298
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
* test(middleware): add tests for public paths
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
Co-authored-by: Thang Vu <thvu@hey.com >
2022-09-18 11:07:46 +07:00
dependabot[bot]
a3b92dbaec
chore(deps): bump jose from 4.5.0 to 4.9.3 in /apps/playground-sveltekit ( #5359 )
...
Bumps [jose](https://github.com/panva/jose ) from 4.5.0 to 4.9.3.
- [Release notes](https://github.com/panva/jose/releases )
- [Changelog](https://github.com/panva/jose/blob/main/CHANGELOG.md )
- [Commits](https://github.com/panva/jose/compare/v4.5.0...v4.9.3 )
---
updated-dependencies:
- dependency-name: jose
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-17 01:55:54 +02:00
Steve Burtenshaw
bdd3ab2816
docs(middleware): remove reference to nested ( #5355 )
...
Fixes #5180
2022-09-16 10:30:58 +02:00
Dulmandakh
ba55f06585
chore(deps): bump cookie to 0.5.0 ( #5339 )
2022-09-14 18:31:00 +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
Thang Vu
5727c5f4e6
chore: tweak tsconfig files
2022-09-10 09:39:26 +07:00
Balázs Orbán
8104cb1287
chore: fix builds/tests/eslint ( #4780 )
...
* chore(deps): upgrade `typescript`
* chore(ts): don't exclude test files in tsconfig
* test: expect error when overriding `NODE_ENV`
* chore: remove unused import
* format
* chore: use pnpm@7 in action
* chore: fix eslint
* chore: remove pnpm from engines
* chore: fix configs/builds
* fix: make eslint works
* Update pnpm-lock.yaml
* fix: build failure
* fix: add react to paths
* ignore upstash for now
* add eslintignore, add a bunch of tsconfig.eslint.json
* ignore mikro orm for now
* Delete tsconfig.eslint.json
* Update package.json
* Update pnpm-lock.yaml
* move eslint back to package.json
* move eslintrc.js out
Co-authored-by: Thang Vu <thvu@hey.com >
Co-authored-by: Thang Vu <thang.vu@binance.com >
2022-09-09 13:51:40 +02:00
Balázs Orbán
44aaa6f1c3
chore: turbo cleanup ( #4951 )
...
* clean up `package.json` files
* chore(ts): make sure `next-auth/next` does not conflict with `next`
* simplify `turbo.json`
* fix: apply suggestion
* simplify doc dev command
* ignore upstash redis again
* ignore mikro orm for now
* chore: dev command
* update lock file
* update css path for dev only
* Update apps/dev/package.json
Co-authored-by: Thang Vu <thvu@hey.com >
2022-09-08 16:43:16 +02:00
Roberto Romero
ba20974b5f
fix(providers): use client_secret_post token auth for LinkedIn ( #5236 )
...
* Send client_id and client_secret to linkedin
Linkedin now requires client_id and client_secret to be
sent in the oauth callback. Fixes #5220
* Update linkedin.ts
Co-authored-by: Thang Vu <thvu@hey.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-07 17:57:45 +02:00
Anton Starikovich
14b4ed1d8a
feat(adapters): let user configure MongoDB database name ( #5290 )
...
* feat: added providing database name in options
* fix: added database name providing in readme
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-09-07 17:56:00 +02: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
Jonny
d3571e01ba
fix: Change getToken parameter type to required ( #5245 )
...
* changed getToken parameter type to required
* removed redundant nullish coalescing operator
Co-authored-by: Thang Vu <thvu@hey.com >
2022-09-02 12:34:40 +07:00
Esteban Dalel R
3b7c9886c3
docs: fix grammar error ( #5254 )
2022-09-01 12:04:30 +01:00
dependabot[bot]
39fec738c6
chore(deps-dev): bump vite from 2.8.4 to 2.9.13 in /apps/playground-sveltekit ( #5255 )
...
chore(deps-dev): bump vite in /apps/playground-sveltekit
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 2.8.4 to 2.9.13.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v2.9.13/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 12:04:04 +01:00