Balázs Orbán
b2f6b8278e
chore: Update package.json [skip ci]
2023-10-26 10:27:44 -07:00
Martin Schaer
c555356895
feat(adapters-surrealdb): update surrealdb.js to enable http connection strategy ( #8823 )
...
* update surrealdb.js which fixes rest/http strategy
* uncomment rest test
* add docs
* update package dependencies
* run both strategies
* Apply suggestions from code review
* add fetch to jest globals
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-10-26 10:32:40 +07:00
Balázs Orbán
21288ad461
chore: bump peer dependency version
2023-10-24 17:36:41 -07:00
Balázs Orbán
ae2f2f44c8
docs: add redirect
2023-10-24 17:36:14 -07:00
Balázs Orbán
81283cc4be
docs: tweak v5 guide
2023-10-24 16:01:12 -07:00
Balázs Orbán
cdf7b98a60
chore: bump version [skip ci]
2023-10-24 15:49:21 -07:00
Balázs Orbán
84c69da807
fix: allow Response as return type of authorized
2023-10-24 15:49:00 -07:00
Balázs Orbán
f78b33f2fa
fix: correct links
2023-10-24 15:42:44 -07:00
Balázs Orbán
fe003ec6ff
chore: bump version [skip ci]
2023-10-24 15:41:17 -07:00
Balázs Orbán
46bbfef34c
fix: allow middleware handling of auth actions
2023-10-24 15:40:51 -07:00
Luke
5246ca9ed0
docs: Update resources.md ( #8866 )
...
remove a broken link
2023-10-24 02:16:39 +01:00
Balázs Orbán
b077baa280
docs: change to beta tag in migration guide
2023-10-23 17:54:09 -07:00
Balázs Orbán
0909f7185a
docs: cleanup getting started guides ( #8927 )
...
* fix gitignore
* auto-generate providers docs, move pages around, rewrite some docs
* move deployment to getting started
* remove sidebar position configs
* simplify landing page code examples
* add framework logos
* add cards of frameworks on getting started intro
* reword adapters and deployments docs
* update typescript guide
2023-10-24 01:53:00 +01:00
Balázs Orbán
9604cb7cd3
chore: temporarily disallow branch release
2023-10-23 17:52:38 -07:00
Balázs Orbán
5f11ff72c2
chore: bump version [skip ci]
2023-10-23 17:48:07 -07:00
Balázs Orbán
e8a6279e47
chore: next-auth release on beta
2023-10-23 17:42:14 -07:00
Balázs Orbán
65aa467c0e
feat(nextjs): introduce next-auth v5 ( #7443 )
...
Next.js 13.4 [is out](https://nextjs.org/blog/next-13-4 ).
For discussing project-related issues, please use https://github.com/nextauthjs/next-auth/discussions/8487
The new version of NextAuth.js is based on `@auth/core`.
If you want to test it out, you can do so already, installing `next-auth@experimental`:
- **Documentation**: https://authjs.dev/reference/nextjs
- **Migration guide**: https://authjs.dev/guides/upgrade-to-v5
BREAKING CHANGE:
Follow the [migration guide](https://authjs.dev/guides/upgrade-to-v5 )
2023-10-23 17:35:30 -07:00
GitHub Actions
06cc2dfde0
chore(release): bump package version(s) [skip ci]
2023-10-24 00:26:45 +00:00
Balázs Orbán
f77704bb7e
feat(ts): use User as Sessionuser type
2023-10-23 12:19:26 -07:00
Yangshun Tay
c3388bde47
docs: fix non-closing admonition block in oauth-tutorial.mdx ( #8920 )
2023-10-22 22:07:28 +07:00
Balázs Orbán
d094c6f4d9
docs: fix providers docs
2023-10-20 17:30:12 -07:00
Balázs Orbán
c31a0e7aba
fix(docs): correctly define module name
2023-10-20 17:30:04 -07:00
Balázs Orbán
1fb292c12b
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-10-20 17:23:41 -07:00
Thang Vu
7e8d49cc20
fix: css issue
2023-10-19 19:40:26 +07:00
Balázs Orbán
6850602a67
chore: match Hasura tsocnfig with other adapters
2023-10-18 11:46:35 -06:00
Thang Vu
32dbf5486c
chore: update example
2023-10-18 21:13:27 +07:00
Balázs Orbán
1789fc9d56
chore: drop unused dep
2023-10-18 13:28:24 +02:00
Balázs Orbán
616221ee37
chore: drop fetch polyfill as we require Node.js 18
2023-10-18 13:25:57 +02:00
GitHub Actions
d0f4b4a05e
chore(release): bump package version(s) [skip ci]
2023-10-17 00:00:25 +00:00
Balázs Orbán
054dbe683c
docs: Update sidebars.js
2023-10-16 15:04:28 +01:00
Balázs Orbán
9af588774a
feat: tweak sign-in page design ( #6774 )
...
* feat: simplify sign-in page
* redid styling, add brandName & providersLayout
* edit some styling
* remove default value
* tweak
* tweak
* tweak logos
* Update signin.tsx
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-10-16 07:57:49 +07:00
GitHub Actions
c4ad77b867
chore(release): bump package version(s) [skip ci]
2023-10-08 17:19:45 +00:00
Balázs Orbán
6e1649d13f
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-10-08 19:15:45 +02:00
Balázs Orbán
ffe8cbc2db
fix: don't publish schema.gql
2023-10-08 19:15:42 +02:00
GitHub Actions
9caea9b311
chore(release): bump package version(s) [skip ci]
2023-10-08 17:08:59 +00:00
Balázs Orbán
2f0b85b27c
chore: simplify testing
2023-10-08 19:05:19 +02:00
Balázs Orbán
979c9f06b3
fix: drop graphql and graphql-request peer deps ( #8817 )
2023-10-08 18:53:02 +02:00
GitHub Actions
cf68e85885
chore(release): bump package version(s) [skip ci]
2023-10-07 12:06:07 +00:00
arjunyel
2211693040
feat(adapters): add Hasura adapter ( #5707 )
...
* feat(adapters): add Hasura adapter
* chore: formatting
* chore: formatting
* chore: formatting
* chore: formatting
* Merge branch 'main' into hasura-adapter
* feat(adapter): add Hasura adapter
* chore: update Hasura adapter readme
* chore(docs): add Hasura
* feat(adapter): move Hasura codegen to script
* feat(adapter): remove docker from Hasura build
* chore: resolve conflict
* fix test
* fix test
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-10-07 08:47:48 +07:00
Balázs Orbán
c21e9b94f5
chore: Update FUNDING.yml
2023-10-06 17:18:05 +02:00
Balázs Orbán
99328272d4
docs: add sponsor ( #8571 )
...
* add deps
* add components
* style changes
* tweak style
* Styling adjustments for sponsor ad (#8725 )
* Configure darkmode
* Styling tweaks
* update readme and sidebar
* add readme images
* use relative url
* add sponsored by
* tweak readme
* swap colors on sidebar
* fix rings
* change to png
* swap
---------
Co-authored-by: Austin Calvelage <austin.calvelage@icloud.com >
2023-10-05 16:27:21 +01:00
Balázs Orbán
ebbf92bf4b
chore: change fetch-depth
2023-10-05 16:45:39 +02:00
Balázs Orbán
a0d302fc08
chore: bump @balazsorban/monorepo-release
2023-10-05 16:41:54 +02:00
Balázs Orbán
145e4428ed
chore: add peek to release workflow
2023-10-05 16:35:41 +02:00
Balázs Orbán
6e9356dcb1
chore: bump @balazsorban/monorepo-release
2023-10-05 16:18:26 +02:00
Balázs Orbán
17e45d88e5
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-10-05 15:36:31 +02:00
Balázs Orbán
63c9326664
fix: move crypto polyfill to test
2023-10-05 15:36:26 +02:00
GitHub Actions
ff3a7392fb
chore(release): bump package version(s) [skip ci]
2023-10-03 15:58:58 +00:00
Balázs Orbán
e1ba0c948e
chore: remove dry run flag
2023-10-03 17:54:15 +02:00
Balázs Orbán
304575581b
chore: bump @balazsorban/monorepo-release
...
Fixes #6226
2023-10-03 17:32:23 +02:00
Thang Vu
5133892784
fix: set correct response status if X-Auth-Return-Redirect ( #8779 )
...
Copy from https://github.com/nextauthjs/next-auth/pull/8775
2023-10-03 01:14:47 +01:00
Balázs Orbán
a767456e36
docs: fix link
...
Closes #8760
2023-10-02 01:02:28 +01:00
GitHub Actions
b277e937e2
chore(release): bump package version(s) [skip ci]
2023-10-02 00:00:42 +00:00
Balázs Orbán
59b2847274
docs: fix fallback edit link
2023-10-02 01:57:56 +02:00
Balázs Orbán
e32fb16b17
fix: match typeorm peer dependencies
...
Closes #8769
2023-10-02 01:53:18 +02:00
Balázs Orbán
45e721c3f7
docs: typo
2023-09-29 23:03:04 +02:00
Balázs Orbán
de8ad4f5af
docs: fix typos
2023-09-29 22:58:13 +02:00
Balázs Orbán
9462b8ffb4
docs: update FAQ
2023-09-29 22:55:01 +02:00
Balázs Orbán
1cf0eeace6
docs: add more info to session strategies
2023-09-29 21:52:16 +01:00
Balázs Orbán
7cf0074417
chore: cleanup
2023-09-29 22:29:09 +02:00
Balázs Orbán
899098ccc4
fix: drop next-auth dependency
2023-09-29 22:28:57 +02:00
Balázs Orbán
67c29039c7
chore: bump minimum node version
2023-09-29 22:23:54 +02:00
Balázs Orbán
e9ad688a5a
docs: add session strategies concepts
2023-09-29 22:07:06 +02:00
GitHub Actions
8f8067a23a
chore(release): bump package version(s) [skip ci]
2023-09-28 10:52:10 +00:00
Balázs Orbán
8629e16255
fix: allow csrfDisabled on session action
2023-09-28 12:48:04 +02:00
Balázs Orbán
bfa0d910d7
chore: disable build of next-auth on main
...
it's released from the `v4` branch right now
2023-09-28 12:21:50 +02:00
Balázs Orbán
cff0d61e07
chore: format turbo.json
2023-09-28 01:45:58 +02:00
Balázs Orbán
41c24542b5
chore: drop duplicate provider-logos
2023-09-28 01:21:50 +02:00
Balázs Orbán
77a439b2a2
chore: docs fix config
2023-09-28 01:10:49 +02:00
Balázs Orbán
95eb8aaf69
docs: pull out docs changes from #7443
...
to minimize the diff there
2023-09-28 01:08:06 +02:00
Balázs Orbán
559842fe02
chore: remove v4 dev app
2023-09-28 00:51:04 +02:00
Balázs Orbán
ce7a49910e
chore(examples): add cognito issuer
2023-09-27 13:41:35 +02:00
Balázs Orbán
e895f42302
docs: fix edit links for adapters
2023-09-26 12:39:29 +02:00
panstabolitis
db2ace585d
fix(docs): correct comment syntax in SQL code snippets ( #8720 )
...
Changed the SQL comment syntax from // to -- in packages/adapter-supabase/src/index.ts
2023-09-26 02:07:10 +02:00
Natsuki Ikeguchi
c9fc84ee82
build(deps): Remove better-sqlite3@7 ( #8719 )
2023-09-26 02:05:56 +02:00
Balázs Orbán
77933b23f0
chore: only validate bugs reports for repro links
2023-09-25 11:32:58 +02:00
Trần Minh Quang
cbbe27102e
feat(providers): update LinkedIn to use OIDC ( #8396 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-09-25 11:32:58 +02:00
GitHub Actions
e274c51807
chore(release): bump package version(s) [skip ci]
2023-09-24 13:46:27 +00:00
Thang Vu
2b3836d945
chore: add missing adapters in misc files
2023-09-24 20:30:31 +07:00
Thang Vu
b729f8af0b
feat(adapters): azure tables adapter ( #8708 )
...
* feat(adapter): Add Azure Table Storage DB adapter
* add newlines
* remove sessionByUserId together with the session
* include import in the readme file
* add types to response objects
* introduce contracts for the db entities
* Rename the lib in docs
Co-authored-by: Nico Domino <yo@ndo.dev >
* run prettier
* feat: azure tables adapter
---------
Co-authored-by: Nikita Dmitriev <nikitadmitry@gmail.com >
Co-authored-by: Nikita Dmitriev <106996965+nikitaclicks@users.noreply.github.com >
Co-authored-by: Nico Domino <yo@ndo.dev >
2023-09-24 17:50:05 +07:00
Guy Korland
9f54222c0e
fix(adapters): Avoid parseDataSourceConfig on each call ( #8581 )
...
Improve performance by avoiding call to parseDataSourceConfig before checking if _dataSource was already initialized.
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-09-24 10:18:30 +07:00
Joachim Bjørge
a5ac491cb8
fix(providers): optional chaining in azure-ad-b2c profile ( #8616 )
...
Fix crash in azure-ad-b2c.ts
Not all b2c-setups return a list of emails. This fixes the resulting crash by using defensive access when setting the profile email address field.
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-09-24 10:01:43 +07:00
Thang Vu
a96dcdbca3
chore: format surrealdb deps
2023-09-24 09:45:44 +07:00
Martin Schaer
bec01a82ea
feat(adapters): add SurrealDB adapter ( #6251 )
...
* feat(adapter-surrealdb): implemented with unit tests
* chore: update README
* Use stateless DB connection
* Update surrealdb-rest-ts
* chore: bump turbo and pnpm
* chore(docs): fix dynamodb typo (#7130 )
fix: typo
* chore: bump pnpm
* chore: update lock file, bump dev dependencies
* chore: run `pnpm install --fix-lockfile`
* chore: re-run pnpm install
* chore: add missing dev dep
* revert lock
* update lock
* use surrealdb.js
* add rest test
* remove commented-out code
* update readme
* modularize repeated code
* fix(docs): fix default `maxAge` formula (#7406 )
* feat(adapters): add Account mapping before database write (#7369 )
* feat: map Account before saving to database
* document `acconut()`, explain default behaviour
* generate `expires_at` based on `expires_in`
Fixes #6538
* rename
* strip undefined on `defaultProfile`
* don't forward defaults to account callback
* improve internal namings, types, docs
* chore: improve errors, add more docs (#7415 )
* JWT Token -> JWT
* document some errors
* improve errors, docs
* fix: loosen profile types
* chore: type fixes
* fix: allow handling OAuth callback error response
related #7407
* fix(docs): remove extra heading
Fixes #7426
* chore: use `@ts-ignore`
* chore: support release any package as experimental
* chore: separate manual release job
* chore: skip test for manual release
* chore: tweak
* chore: tweaks
* chore: tweak manual release version
* Use query instead of select to be able to use query params
* Fix lint errors
* Update surrealdb.js and remove surrealdb-rest-ts in favor of ExperimentalSurrealHTTP
* update pnpm-lock
* fix merge
* fix merge
* fix merge
* migrate surrealdb.js api
* fix queries
* update package.json
* fix types
* prepare for rest
* update readme
* chore: format PR
* Update README.md
* Update package.json
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: jakzo <jack@jf.id.au >
Co-authored-by: Victor <saptefrativictor@gmail.com >
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-09-23 21:14:40 +07:00
GitHub Actions
6061bbcde1
chore(release): bump package version(s) [skip ci]
2023-09-22 08:16:24 +00:00
Thang Vu
09c5fe29ba
chore: update d1 adapter
2023-09-22 15:08:07 +07:00
Thang Vu
6780ed7fee
feat: add pg adapter ( #8679 )
...
* Add vanilla Postgres adapter for NextAuth using the pg package.
All tests are passing.
* Fix typo in readme
* Add basic tsconfig
* Replace this.getUser with functio body as this is undef
* Change name from @next-auth/postgres-adapter to @next-auth/pg-adapter
* Fix package folder to be same as name
* Add package to issue template, labeller and PR labeller
* Commit pnpm lock change.
* Set next-auth version to ^4
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Return user id when updating user. Fixes #4897 .
* chore: format PR
* chore: format PR
* chore: formatting
* fix: tests
* fix
---------
Co-authored-by: Jake Coppinger <jake@jakecoppinger.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-09-22 14:49:01 +07:00
Kyle Roberts
5a7c1bb2bb
docs: Remove asterisk that causes build error in oauth-tutorial.mdx ( #8666 )
...
Update oauth-tutorial.mdx
Remove * from example that's causing an unexpected character error
2023-09-20 19:47:40 +01:00
Kyle Roberts
6448a7b76e
docs: Update SvelteKitAuth example default import to named import ( #8603 )
...
Update SvelteKitAuth example import to current non-default export
2023-09-20 11:15:28 +02:00
Balázs Orbán
db8fcc3c82
chore: Update invalid-reproduction.md
2023-09-19 16:04:13 +02:00
Bob Ippolito
9aeca63013
fix: Build account object with tokens spread as lowest priority ( #8599 )
2023-09-19 15:57:41 +02:00
Balázs Orbán
fee85f3138
chore: Rename help.yml to questions.yml
2023-09-19 15:56:34 +02:00
Balázs Orbán
e5bf8ec9c5
chore: move to nissuer for triaging ( #8646 )
2023-09-19 15:55:16 +02:00
Hamir Mahal
e3ec32812e
chore: remove unnecessary comment ( #8605 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-09-19 15:54:27 +02:00
k8pai
c776435268
fix(docs): correct import name ( #8606 )
2023-09-19 11:55:01 +02:00
GitHub Actions
d0cc046e2d
chore(release): bump package version(s) [skip ci]
2023-09-16 13:48:09 +00:00
Thang Vu
c818d028aa
fix: missing closing tag in adapters doc
2023-09-16 20:42:14 +07:00
Thang Vu
3ba8a0e40a
chore: fix deps edgeDB
2023-09-16 18:23:50 +07:00
Josh Schlesser
770d3565f8
feat(adapter): add new Cloudflare D1 Adapter ( #6953 )
...
* cleaned everything up
* Added documentation
* fixed up d1 logo in docs
* cleaning out unused file
* changed to esm module
* formatting the PR
* update the deps
* update the deps
* ignore test
* ignore test
* fix deps
* add contributor
---------
Co-authored-by: Nico Domino <yo@ndo.dev >
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-09-16 18:17:02 +07:00
Hamir Mahal
ed32236712
docs: don't copy $ in commands ( #8609 )
...
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-09-16 09:56:57 +02:00
Thang Vu
307f7b5eb9
chore: Add EdgeDB in sidebar
2023-09-16 12:06:12 +07:00
Thang Vu
120d7a29ee
chore: update email
2023-09-16 12:05:57 +07:00
GitHub Actions
ea65134a84
chore(release): bump package version(s) [skip ci]
2023-09-16 04:30:21 +00:00
Thang Vu
016b22833c
chore(docs): add EdgeDB in typedoc
2023-09-16 11:21:48 +07:00
Bruno Crosier
67dbbb2cdf
feat(adapters): new EdgeDB Adapter ( #5781 )
...
* init adapter folder
* add schema
* run migration
* run `npx @edgedb/generate edgeql-js`
* fix `generate` script
* add `EdgeDBAdapter`
* add tests
* add README
* docs
* dev app
* lockfile
* remove generated files
* ignore `dbschema/edgeql-js`
* add `postinstall` generate script
* update docs
* move `nonrecursive_access_policies` to default schema
* newlines
* remove js generation
* rewrite in edgeql
* make `userId` computed
* fix `createUser` image param
* code review comments
* update lockfile
* code review
* comments
* delete
* types
* revert settings.json
* delete migrations
* deps
* clean up
* Restore packages/adapter-test/index.ts
* chore: formatting & fix logic of useVerificationToken
* chore: delete .md file
* fix: test
* chore: logo
* chore: formatting
* chore: add edgedb to doc
---------
Co-authored-by: Nico Domino <yo@ndo.dev >
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-09-16 11:03:48 +07:00
Dewin Umana
f87e66f0b3
feat(providers): TikTok provider ( #8131 )
...
* feat(providers): TikTok provider
* Linting
* Move files under the correct paths
* Added Tiktok Provider
* Update Bug provider template
2023-09-15 12:14:44 +07:00
k8pai
b1c46809f5
fix(docs): remove typesafety statements as string ( #8566 )
...
Removed typesafety statement `as string` from Configuring Auth.js of /adapter-dynamodb
2023-09-12 14:42:25 +02:00
Thang Vu
b9e9722b74
feat(providers): Dribbble provider ( #8531 )
...
* feat(providers): add Dribbble provider
* update Dribbble
Co-Authored-By: Pavel Fomchenkov <hello@pavel.codes >
---------
Co-authored-by: Pavel Fomchenkov <hello@pavel.codes >
2023-09-09 14:07:24 +07:00
GitHub Actions
57f75c7839
chore(release): bump package version(s) [skip ci]
2023-09-07 15:59:48 +00:00
Jonas Strassel
e20eb5b583
feat: bump mongodb to v6 ( #8492 )
...
BREAKING CHANGE:
The required minimum version of `mongodb` has been bumped to v6, make sure to upgrade it in your project via `npm i mongodb@latest` or the equivalent
2023-09-07 17:54:16 +02:00
Thang Vu
fb7c5f9ef6
feat: Mastodon Provider ( #8516 )
...
Co-authored-by: Leif Arriens <30775450+leifarriens@users.noreply.github.com >
2023-09-07 22:18:11 +07:00
Anthony Shew
e986369906
docs: Add more detail to Credentials provider. ( #8482 )
...
* Soften messaging on Credentials provider documentation.
* Get rid of the swap.
* Switch to using authorize().
2023-09-06 00:24:27 +02:00
Antonio Basile
f3c64a85c9
feat(providers): Click up provider ( #8489 )
...
* feat: click up provider created
* docs: ClickUp documentation
* Format
---------
Co-authored-by: Antonio Basile <antoniobasile2@eng.it >
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-09-05 22:13:56 +07:00
GitHub Actions
4f3241f8dd
chore(release): bump package version(s) [skip ci]
2023-09-04 23:02:35 +00:00
Jason
65043ba471
fix: return Session from deleteSession() ( #8484 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-09-04 16:17:48 +02:00
Balázs Orbán
46c5a97a0e
chore: add passage issuer
2023-09-03 13:24:03 +02:00
Balázs Orbán
9f99066b19
chore: update NextAuth.js example to use App Router ( #8477 )
...
* move initiaization to App Router
* add more providers
* don't use default export
* update tsconfig
* move under api
* add more providers
* add issuer
* add issuer
2023-09-03 11:59:58 +01:00
Menushka Weeratunga
e266001c28
docs: Add SvelteKit OAuth tutorial docs ( #8311 )
...
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-09-02 10:11:31 +07:00
Thang Vu
f1eb45f3c1
docs: Add callbacks example for Credential Provider
2023-09-02 09:40:31 +07:00
jonek
f621627914
fix(sveltekit): support custom base path properly ( #8231 )
...
* fix(sveltekit): support custom base path
* update server
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-09-02 00:03:22 +07:00
dependabot[bot]
2b6ad02bba
chore(deps-dev): bump mongodb from 4.7.0 to 4.17.0 ( #8461 )
...
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native ) from 4.7.0 to 4.17.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases )
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v4.17.0/HISTORY.md )
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v4.7.0...v4.17.0 )
---
updated-dependencies:
- dependency-name: mongodb
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-01 13:14:49 +01:00
GitHub Actions
1a23e41bca
chore(release): bump package version(s) [skip ci]
2023-09-01 12:13:47 +00:00
Balázs Orbán
9dfef763fc
chore: bump pnpm
2023-09-01 13:54:59 +02:00
Balázs Orbán
f53c16a454
chore: fix supabase tests
2023-09-01 13:53:18 +02:00
Thang Vu
e999511a2e
docs: add framework tabs in getting started & guide ( #8470 )
2023-09-01 13:45:16 +02:00
Rexford Essilfie
2707f9ebfe
docs: fix failing docs build ( #8463 )
...
chore: lint azure-devops provider
2023-08-31 14:35:40 +01:00
Evgenii Perminov
35977bf132
fix(providers): Update type oidc for Linkedin ( #8345 )
...
* linked in provider options and profile update
* interface update
* removed unchecked property access
* unncessary async
* revert changes to v4
* fallback to default properties
* Update packages/core/src/providers/linkedin.ts
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-08-29 11:31:18 +07:00
Pavel Fomchenkov
578ff21d7e
feat(providers): add Azure DevOps provider ( #4698 )
2023-08-27 20:50:59 +07:00
Balázs Orbán
ba238796b8
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-08-25 11:56:22 +02:00
Balázs Orbán
56b27de3be
docs: fix edit links for auto-generated pages
2023-08-25 11:56:18 +02:00
Ahmed Abdelbaset
0bc9b4fe5a
docs: Correct a typo that is causing a broken link. ( #8405 )
...
fix broken link
2023-08-25 10:43:44 +01:00
Balázs Orbán
327061ce70
chore: revert typedoc
2023-08-25 11:39:11 +02:00
Balázs Orbán
2ed407d6a5
fix: allow Prisma v5 as peer dependency
2023-08-25 11:32:38 +02:00
Balázs Orbán
e743340612
chore: suppress TS warning in sveltekit
2023-08-25 11:26:20 +02:00
Balázs Orbán
5140857256
chore: fix deps, upgrade docs dependencies
2023-08-25 11:21:55 +02:00
Balázs Orbán
9c6f81308c
chore: bump pnpm and typescript
2023-08-24 20:31:33 +02:00
JunChao
66184c55eb
docs: change var to import to solve using https-proxy-agent have the error: "HttpsProxyAgent is not a constructor" ( #8400 )
...
Update corporate-proxy.md
2023-08-24 14:54:23 +02:00
Balázs Orbán
07599ba41d
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-08-24 11:20:49 +02:00
Balázs Orbán
c5fc3e66ad
docs: rename @next-auth/* to @auth/*
2023-08-24 11:20:44 +02:00
Balázs Orbán
5dfec49ee8
chore: rename @next-auth/* packages to @auth/*
2023-08-24 11:18:04 +02:00
brunsten
b20182c5fe
fix: handle trailing slash when parsing the url ( #8383 )
...
Co-authored-by: Marcus Brunsten <bruno@Marcuss-MacBook-Rd.local >
2023-08-22 15:59:52 +02:00
Balázs Orbán
a6d9459a64
chore: mention that no repro = convert to discussion
2023-08-21 10:28:01 +01:00
GitHub Actions
99035b98f9
chore(release): bump package version(s) [skip ci]
2023-08-18 08:13:39 +00:00
Balázs Orbán
fabb0525d1
fix(adapters): use built-in is() to identify db type ( #8342 )
...
* fix(adapters): use built-in `is()` to identify db type
* remove unused .then
* fix imports
2023-08-18 09:11:33 +01:00
GitHub Actions
28e4328704
chore(release): bump package version(s) [skip ci]
2023-08-14 14:46:10 +00:00
Balázs Orbán
7ff4d9d280
feat: allow raw response for lib authors
2023-08-14 16:39:11 +02:00
Balázs Orbán
26815f7621
docs: clean up roadmap
2023-08-12 12:50:31 +02:00
Balázs Orbán
fe2c3dc6bf
docs: fix links, references, grammar
2023-08-12 12:23:17 +02:00
GitHub Actions
c53435af8a
chore(release): bump package version(s) [skip ci]
2023-08-12 09:41:43 +00:00
Balázs Orbán
f29a1f2778
fix(release): include lib in package
...
Related issue #8299
2023-08-12 11:38:01 +02:00
Balázs Orbán
a4c3270307
chore(turbo): include lib in cache outputs
...
Closes #8299
2023-08-12 11:35:44 +02:00
GitHub Actions
645d003d49
chore(release): bump package version(s) [skip ci]
2023-08-11 11:31:12 +00:00
Balázs Orbán
3f296615c5
fix(providers): docs typo
2023-08-11 13:27:33 +02:00
GitHub Actions
a7842077ec
chore(release): bump package version(s) [skip ci]
2023-08-11 11:26:36 +00:00
Balázs Orbán
b2e5b9f6a8
feat(providers): add Passage by 1Password ( #8295 )
2023-08-11 12:23:27 +01:00
GitHub Actions
0681531627
chore(release): bump package version(s) [skip ci]
2023-08-11 10:29:05 +00:00
Balázs Orbán
ea81c467e9
fix(ts): compatibility with next-auth v4 types ( #8294 )
...
* fix(ts): compatibility with `next-auth` v4
* revert
* stricter types
2023-08-11 11:26:03 +01:00
GitHub Actions
bf2835d38f
chore(release): bump package version(s) [skip ci]
2023-08-11 08:26:58 +00:00
Simon Sardorf
89d230666b
feat(adapters): standardize default table names to be singular ( #8282 )
...
standardize all table names in drizzle adapter to be singular
2023-08-10 12:18:21 +01:00
Jonathan Edenström
f86e56f78a
fix: sort cookie chunks correctly ( #8278 )
...
* fix: sort cookie chunks correctly
* chore: remove v4 next-auth change
2023-08-10 12:18:00 +01:00
Balázs Orbán
fe20b943ae
docs: Update README.md
2023-08-10 00:57:02 +02:00
Balázs Orbán
4678c4d4fc
docs: Update README.md
2023-08-10 00:56:24 +02:00
Balázs Orbán
3eb3f8f107
docs: typo
2023-08-09 23:15:35 +02:00
Balázs Orbán
7fd03f38e3
docs: remove heading from README.md
2023-08-09 23:14:53 +02:00
Balázs Orbán
ae44b72765
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-08-09 23:08:13 +02:00
Balázs Orbán
a996ab57e8
🤖 lazy commit
2023-08-09 23:07:28 +02:00
Thang Vu
ebdeaf740d
chore: move Turbo env vars to top level
2023-08-09 19:07:01 +07:00
GitHub Actions
c5c8a81462
chore(release): bump package version(s) [skip ci]
2023-08-09 09:39:28 +00:00
Balázs Orbán
61d30f3dcd
fix(docs): correct broken link
2023-08-09 11:33:17 +02:00
Balázs Orbán
a9180a752b
fix(docs): correct broken links
2023-08-09 11:33:08 +02:00
Balázs Orbán
6c4180146e
chore(docs): add @auth/solid-start to turbo cache
2023-08-09 11:28:37 +02:00
Balázs Orbán
ec6c4ea2be
docs: fix redirects
2023-08-09 11:20:10 +02:00
Balázs Orbán
3dfc86334e
docs: fix redirects
2023-08-09 11:13:36 +02:00
Balázs Orbán
01d6019638
docs: fix redirects
2023-08-09 11:07:20 +02:00
GitHub Actions
4730429a9f
chore(release): bump package version(s) [skip ci]
2023-08-09 09:05:20 +00:00
Adam James
a49236ef62
fix(ts): corrected sqlite condition ( #8269 )
2023-08-09 10:59:08 +02:00
Balázs Orbán
96ade948ef
chore(docs): fix redirect
2023-08-09 01:08:58 +02:00
GitHub Actions
550507b2d1
chore(release): bump package version(s) [skip ci]
2023-08-08 23:07:59 +00:00
Mark
1eddcf643c
feat(adapters): add Kysely adapter ( #5464 )
...
* feat: kysely-adapter with PostgreSQL and MySQL support
* feat: kysely-adapter with SQLite support
* docs: add docs for kysely-adapter
* chore: cleanup
* chore: update adapter lists
* chore: update column types
* chore: remove pgcrypto install
* chore: add indexes
* chore: Object.assign and cleanup
* feat: add AuthedKysely wrapper
* docs: add Naming Conventions section
* chore: add coerceReturnData to reduce repitition
* chore: add coerceInputData to reduce repitition
* chore: move AuthedKysely export to end
* chore: cleanup
* docs: remove unused import
* feat: add support for using AuthedKysely with generated types from kysely-codegen
* docs: formatting
* chore: CodeGen --> Codegen
* docs: wording update, ts
Co-authored-by: Julius Marminge <julius0216@outlook.com >
* chore: use latest kysely version, update model
* docs: move content to source code
* chore: update deps
* chore: update logo location, add link in overview
* chore: bump kysely version
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com >
* chore: update docs
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com >
* chore: update docs with links to new Kysely docs
Co-authored-by: Jie Peng <dean.leehom@gmail.com >
* feat: emailVerified shouldn't have a default
Co-authored-by: Lars Graubner <lgraubner@users.noreply.github.com >
* simplify, update code
* add README.md
* clean up docs
* fix adapter name
* add to turbo
* fix test
* revert some changes
* test fixes
---------
Co-authored-by: Julius Marminge <julius0216@outlook.com >
Co-authored-by: Igal Klebanov <igalklebanov@gmail.com >
Co-authored-by: Jie Peng <dean.leehom@gmail.com >
Co-authored-by: Lars Graubner <lgraubner@users.noreply.github.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-08-09 00:01:59 +01:00
Julius Marminge
17d71a04d6
feat(adapters): support multi-project schema ( #8266 )
...
* feat: multi-project schema support
Ref: https://orm.drizzle.team/docs/goodies#multi-project-schema
* Update index.ts
* Update index.ts
* doc
* tests
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-08-08 23:59:50 +01:00
Balázs Orbán
3c65e264af
chore: add drizzle to issue labeler
2023-08-09 00:44:54 +02:00
Balázs Orbán
28d8d4894d
chore: add drizzle to turbo
2023-08-09 00:43:49 +02:00
Balázs Orbán
c6b98a8f08
chore: gitignore generated .npmrc files
2023-08-09 00:03:10 +02:00
Balázs Orbán
d042f933c6
fix(docs): update logo URL
2023-08-09 00:01:44 +02:00
GitHub Actions
3a85de2c5f
chore(release): bump package version(s) [skip ci]
2023-08-08 17:38:45 +00:00
Balázs Orbán
d47b56743e
feat(adapters): Drizzle adapter ( #8258 )
...
Co-authored-by: Anthony Shew <anthonyshew@gmail.com >
2023-08-08 19:34:17 +02:00
Balázs Orbán
363440e515
chore: disable debug logs
2023-08-08 14:32:11 +02:00
Thang Vu
60c5037ee1
chore: remove summarize turbo
2023-08-04 12:39:04 +07:00
Thang Vu
97394baed1
chore: change to vars for TURBO_TEAM
2023-08-04 12:02:43 +07:00
Thang Vu
f94abb8f70
chore: add -vvv for turbo
2023-08-04 11:42:00 +07:00
titanism
bbfc11e74c
docs: updated nodemailer email example ( #8210 )
2023-08-03 16:14:39 +02:00
dependabot[bot]
2a70514df1
chore(deps-dev): bump vite from 4.0.1 to 4.0.5 ( #8225 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-03 16:11:30 +02:00
Jabed
96d666465f
docs: fixed the typescript error in nextjs example ( #8224 )
2023-08-03 15:58:37 +02:00
Danny Zhang
ecbf0be22e
docs: correct broken CONTRIBUTING.md link in apps/dev/nextjs-v4 ( #8163 )
2023-07-31 11:23:32 +02:00
hamzah syed
87ec13bd00
docs: Fixed broken link ( #8172 )
2023-07-31 11:23:10 +02:00
Steven Yung
c0f9af4c56
docs: fix GitHub star counter position ( #8143 )
2023-07-26 15:04:12 +02:00
Balázs Orbán
c7b36f45a3
docs: update nodemailer link
...
Fixes #8141
2023-07-26 14:57:22 +02:00
Thang Vu
68ff69f9eb
chore: upload turbo cache ( #8128 )
...
* Update index.ts
* Revert "Update index.ts"
This reverts commit f494291c7385d50e5e8cba65258893925808fa43.
* try this
* Update release.yml
* Update release.yml
* try
* Update turbo.json
* Update release.yml
* Update README.md
* Revert "Update README.md"
This reverts commit a5e56687e0bb60fcefb6c7a2f36d7135fb365e61.
* Update pnpm-workspace.yaml
2023-07-25 22:31:20 +07:00
Thang Vu
23c0a393da
chore: add summarize flag for test
2023-07-24 23:31:31 +07:00
Thang Vu
f130f62a91
chore: ignore apps in test
2023-07-24 20:19:45 +07:00
Thang Vu
c111b436d2
chore: update turbo configurations
2023-07-24 19:39:06 +07:00
Thang Vu
ea895b8864
chore: add TURBO env vars back
2023-07-24 19:20:31 +07:00
Thang Vu
cfedc3b1a3
chore: bump next in dev
2023-07-24 19:01:12 +07:00
Thang Vu
287a5fc05a
chore: clean up dev & lock file
2023-07-24 19:00:26 +07:00
Thang Vu
f3ad659e91
chore: remove TURBO env vars
2023-07-24 18:52:25 +07:00
Thang Vu
48b9a0203e
chore: dev environment clean up
2023-07-23 14:13:31 +07:00
Thang Vu
39fbccb783
fix: follow up allow EndpointRequest to return void type
2023-07-23 14:10:46 +07:00
Junseo
f207e94146
fix(ts): allow EndpointRequest to return void type ( #8112 )
...
* fix: fix: enable EndpointRequest type to return void type
* Update packages/next-auth/src/providers/oauth.ts
* Update packages/core/src/providers/oauth.ts
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-07-22 23:05:29 +07:00
Serdar ŞEN
b845729cdb
docs: update getting started commands for docs ( #8040 )
...
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-07-22 12:53:03 +07:00
GitHub Actions
e459d2d7e2
chore(release): bump package version(s) [skip ci]
2023-07-18 14:40:11 +00:00
Thang Vu
db1fd9007c
fix(ts): types in sveltekit
2023-07-18 21:29:04 +07:00
Thang Vu
0439fc5fc6
feat(providers): add request param to sendVerificationRequest ( #8071 )
...
Co-authored-by: Corey Jepperson <11298888+acoreyj@users.noreply.github.com >
2023-07-18 15:39:11 +02:00
Benjamin Tamasi
d0dd2ababc
fix(sveltekit): prefix for getSession url ( #6478 )
...
* [SvelteKit] fix getSession url
remove `/api` prefix from getSession function.
* Update packages/frameworks-sveltekit/src/lib/index.ts
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-07-16 21:01:25 +07:00
Thang Vu
ba58d48dba
fix(providers): add authorization params for AzureAD ( #8047 )
...
https: //github.com/nextauthjs/next-auth/pull/5668
Co-authored-by: Andres Jose Sebastian Rincon Gonzalez <2531975+stianrincon@users.noreply.github.com >
2023-07-15 22:01:24 +07:00
Thang Vu
a8d76ed440
fix(ts): require id for updateUser param ( #8044 )
...
https: //github.com/nextauthjs/next-auth/pull/5431
Co-authored-by: Yuri Sulyma <453486+ysulyma@users.noreply.github.com >
2023-07-15 17:18:15 +07:00
Thang Vu
3d7b8720db
chore(docs): OIDC example for BoxyHQ ( #8032 )
...
chore(docs): OIDC example for BoxyHQ
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com >
2023-07-13 23:43:10 +07:00
Francis Gulotta
1e886b97bc
fix(EmailProvider): proper required fields and allow all nodemailer types ( #8016 )
2023-07-11 18:01:47 +02:00
Tal Aharoni
ecb14ccecd
fix: correct Descope provider config ( #8003 )
2023-07-11 12:51:32 +02:00
GitHub Actions
8cee24d4ab
chore(release): bump package version(s) [skip ci]
2023-07-10 19:40:53 +00:00
Balázs Orbán
0189a197be
chore: fix syntax in package.json
2023-07-10 21:29:38 +02:00
Balázs Orbán
c44bf75c65
fix: add svelte as peer dependency
...
Fixes #8004
2023-07-10 21:27:16 +02:00
GitHub Actions
cf13b6c7e3
chore(release): bump package version(s) [skip ci]
2023-07-10 16:21:19 +00:00
Dahoom152
dc1a79e547
fix: drop svelte as peer dependency ( #7989 )
...
* optionally bumped to svelte 4.0
* removed redundancy
* Update package.json
* Update package.json
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-07-10 18:10:29 +02:00
arjun
78964c115b
fix(adapters): add missing .js file extension ( #7971 )
...
Add missing .js file extension
2023-07-07 17:05:07 +02:00
Balázs Orbán
7fa51e2a61
docs: clarify preview deployment guide
2023-07-06 16:44:31 +02:00
Gwenaël Gallon
a79774f6e8
fix(docs): fix catch-all route path ( #7925 )
2023-07-01 01:36:23 +02:00
Fatih Solhan
f779f05906
docs: remove extra 'if' in comment ( #7914 )
2023-06-30 21:00:28 +02:00
GitHub Actions
3245c02eac
chore(release): bump package version(s) [skip ci]
2023-06-27 15:22:02 +00:00
Doron Sharon
a8dfc8ebb1
feat(providers): Add Descope provider ( #7874 )
...
* Add Descope provider
* Add Descope provider
* Remove dark logo, remove wellKnown, and fix user profile syntax
* Change to DESCOPE_SECRET
* Fix env comment
* Fix clientId extracting
* Change to client id
2023-06-26 18:18:58 +02:00
Esteve
1b80a18dd4
fix(adapters): Add .js file extension to relative imports ( #7856 )
...
Add .js file extension to relative imports
2023-06-24 10:21:50 +02:00
GitHub Actions
50a88bb878
chore(release): bump package version(s) [skip ci]
2023-06-22 12:50:36 +00:00
Balázs Orbán
a359a562ce
fix: correctly assert protocol
2023-06-22 14:27:44 +02:00
GitHub Actions
7edb9cf53f
chore(release): bump package version(s) [skip ci]
2023-06-21 07:57:50 +00:00
Balázs Orbán
018b086c4f
chore: fix tests
2023-06-21 09:42:46 +02:00
Balázs Orbán
173000a068
fix: add .js extension
...
fixes #7826
2023-06-21 09:14:03 +02:00
Balázs Orbán
8fcd46b0fc
fix(ts): loosen Profile type
2023-06-20 17:15:22 +02:00
GitHub Actions
d5d1313914
chore(release): bump package version(s) [skip ci]
2023-06-14 13:07:32 +00:00
Balázs Orbán
3285d04241
fix(build): use correct tsconfig
2023-06-14 14:51:50 +02:00
Balázs Orbán
fe442522ef
fix(client): remove unused declaration
2023-06-14 14:48:22 +02:00
GitHub Actions
6c9dfff45f
chore(release): bump package version(s) [skip ci]
2023-06-14 12:47:31 +00:00
Balázs Orbán
ef50916ec2
fix(ts): correct user type reference
2023-06-14 14:37:34 +02:00
GitHub Actions
8e771a2993
chore(release): bump package version(s) [skip ci]
2023-06-14 12:22:38 +00:00
Balázs Orbán
06a7149b66
feat: introduce @auth/supabase-adapter ( #7807 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/supabase-adapter": "0.0.0",
+ "@auth/supabase-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
2023-06-14 13:09:29 +01:00
Balázs Orbán
662e0942cb
feat: introduce @auth/xata-adapter ( #7808 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/xata-adapter": "0.0.0",
+ "@auth/xata-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
2023-06-14 13:09:14 +01:00
Balázs Orbán
91c71a175b
chore: fix version
2023-06-14 14:08:13 +02:00
Balázs Orbán
3b8c75297b
fix: use correct import
2023-06-14 13:50:30 +02:00
Balázs Orbán
5d06fa5852
feat: introduce @auth/sequelize-adapter ( #7806 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/sequelize-adapter": "0.0.0",
+ "@auth/sequelize-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
2023-06-14 12:38:15 +01:00
Balázs Orbán
e7a52077c5
feat: introduce @auth/pouchdb-adapter ( #7805 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/pouchdb-adapter": "0.0.0",
+ "@auth/pouchdb-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
This package assumes that `globalThis.crypto` is available.
In older Node.js versions, you can polyfill by adding:
`globalThis.crypto ??= require("node:crypto").webcrypto`
2023-06-14 12:28:39 +01:00
Balázs Orbán
6e4516a9f8
feat: introduce @auth/neo4j-adapter ( #7804 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/neo4j-adapter": "0.0.0",
+ "@auth/neo4j-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
This package assumes that `globalThis.crypto` is available.
In older Node.js versions, you can polyfill by adding:
`globalThis.crypto ??= require("node:crypto").webcrypto`
2023-06-14 12:26:38 +01:00
Balázs Orbán
8a0b11fcd6
chore: reset version
2023-06-14 12:03:07 +01:00
Balázs Orbán
f925e0c2a5
feat: introduce @auth/firebase-adapter ( #7803 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/firebase-adapter": "0.0.0",
+ "@auth/firebase-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
2023-06-14 12:02:24 +01:00
Balázs Orbán
de4e20cc04
feat: introduce @auth/fauna-adapter ( #7802 )
...
* feat: introduce `@auth/fauna-adapter`
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/fauna-adapter": "0.0.0",
+ "@auth/fauna-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
2023-06-14 12:00:40 +01:00
GitHub Actions
65f4b9c942
chore(release): bump package version(s) [skip ci]
2023-06-13 15:02:46 +00:00
Balázs Orbán
1d29b0d220
feat: introduce @auth/mikro-orm-adapter ( #7794 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/mikro-orm-adapter": "0.0.0",
+ "@auth/mikro-orm-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
This package assumes that `globalThis.crypto` is available.
In older Node.js versions, you can polyfill by adding:
`globalThis.crypto ??= require("node:crypto").webcrypto`
2023-06-13 15:39:43 +01:00
Balázs Orbán
cd92aa0c82
feat: introduce @auth/dynamodb-adapter ( #7793 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/dynamodb-adapter": "0.0.0",
+ "@auth/dynamodb-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
This package assumes that `globalThis.crypto` is available.
In older Node.js versions, you can polyfill by adding:
`globalThis.crypto ??= require("node:crypto").webcrypto`
2023-06-13 15:28:33 +01:00
Balázs Orbán
d414e01181
feat: introduce @auth/dgraph-adapter ( #7792 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/dgraph-adapter": "0.0.0",
+ "@auth/dgraph-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
`fetch` is not polyfilled anymore.
In older Node.js versions, you can use the `--experimental-fetch` flag, or install `undici` and add the following line:
`globalThis.fetch ??= require("undici").fetch`
2023-06-13 14:31:04 +01:00
GitHub Actions
43deda5bfb
chore(release): bump package version(s) [skip ci]
2023-06-13 12:49:24 +00:00
Balázs Orbán
7e79d8c509
feat: introduce @auth/upstash-redis-adapter ( #7791 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/upstash-redis-adapter": "0.0.0",
+ "@auth/upstash-redis-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
This package assumes that `globalThis.crypto` is available.
In older Node.js versions, you can polyfill by adding:
`globalThis.crypto ??= require("node:crypto").webcrypto`
2023-06-13 14:36:38 +02:00
Balázs Orbán
ab051162a7
chore: reset @auth/mongodb-adapter version
2023-06-13 13:02:19 +01:00
Balázs Orbán
87298a0150
feat: introduce @auth/mongodb-adapter ( #7790 )
...
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the `@auth/*` scope.
This PR is part of a series to convert adapters, using `@auth/core` for types.
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/mongodb-adapter": "0.0.0",
+ "@auth/mongodb-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
2023-06-13 13:41:12 +02:00
GitHub Actions
d6abccd9a0
chore(release): bump package version(s) [skip ci]
2023-06-13 11:37:54 +00:00
Josua Frank
2f35daae37
fix(client): respect { redirect: true } in signIn() ( #7775 )
...
* Fix `signIn()` not respecting `{ redirect: true }`
* Apply suggestions from code review
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-06-13 12:14:49 +01:00
Koen Bolhuis
a0f3b04c43
docs: Fix typo in email tutorial ( #7769 )
2023-06-13 12:11:04 +01:00
GitHub Actions
c7dec376a1
chore(release): bump package version(s) [skip ci]
2023-06-05 21:41:46 +00:00
Gage Keenan
925a52e0ec
fix: sort chunked session cookies ( #7736 )
...
Update cookie.ts
2023-06-05 17:36:10 +01:00
Imamuzzaki Abu Salam
2318e44de4
docs(cypress): update file config to latest cypress c… ( #7733 )
...
docs(testing-with-cypress.md): update file config to latest cypress config filename
2023-06-05 17:33:37 +01:00
GitHub Actions
d73812bce5
chore(release): bump package version(s) [skip ci]
2023-06-01 17:21:47 +00:00
Balázs Orbán
ee36d09a08
chore: drop Legacy from naming everywhere
2023-06-01 19:05:44 +02:00
Balázs Orbán
0cb7fd2e7c
feat: introduce @auth/typeorm-adapter ( #7706 )
...
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/typeorm-legacy-adapter": "0.0.0",
+ "@auth/typeorm-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only
2023-06-01 17:52:11 +01:00
GitHub Actions
3b414bd7b5
chore(release): bump package version(s) [skip ci]
2023-06-01 14:19:07 +00:00
Balázs Orbán
37bb6ebd2c
fix(docs): update code example
2023-06-01 16:08:21 +02:00
Balázs Orbán
2ecf52c342
feat: introduce @auth/prisma-adapter ( #7703 )
...
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:
```diff
- "@next-auth/prisma-adapter": "0.0.0",
+ "@auth/prisma-adapter": "0.0.0",
```
And run `npm install`, `yarn install` or `pnpm install` respectively.
**Note:** This packages is published as ESM-only.
2023-06-01 16:06:22 +02:00
Balázs Orbán
cda07c239e
chore: remove "nuxt postinstall"
2023-06-01 15:17:58 +02:00
Balázs Orbán
fa60b79abe
chore: upgrade turbo
2023-06-01 15:15:23 +02:00
GitHub Actions
39e1a76e8f
chore(release): bump package version(s) [skip ci]
2023-06-01 12:59:53 +00:00
Balázs Orbán
953ef9d04a
chore: re-add pnpm caching
...
Related: #7332
2023-06-01 14:49:45 +02:00
Balázs Orbán
94f3031765
chore: allow manual release of any @auth/* package
2023-06-01 14:49:45 +02:00
Balázs Orbán
ad7bf07ddf
chore: update lock file
2023-06-01 14:49:45 +02:00
Graham Charles
f30308ac30
docs: fix info card rendering in oauth-tutorial.mdx ( #7662 )
...
Info box is not being rendered; the raw `:::info` is displayed. Blind guess: it needs a blank line before it.
2023-06-01 14:49:45 +02:00
Tashrik Anam
6eaaeb15e9
docs: adapter card text color on hover when on dark mode ( #7672 )
2023-06-01 14:49:45 +02:00
Robert Soriano
8b3f0696a5
chore(playgrounds): Nuxt 3.5.1 ( #7626 )
...
* bump Nuxt to 3.5.1
* follow playground package names
* chore: update nuxt playground scripts
* fix: imports and types
* fix: more nuxt type imports
* fix: nuxt auth options types
* fix: nuxt client fetch types
2023-06-01 14:49:45 +02:00
Doron Sharon
c69a157832
chore: Add Descope as a 🥉 bronze financial sponsor ( #7615 )
...
Add Descope as a bronze sponsor
2023-06-01 14:49:45 +02:00
TATHAGATA ROY
60af446338
docs: Cypress.Cookies.defaults removed ( #7574 )
2023-06-01 14:49:45 +02:00
Nirmalya Ghosh
ce85444760
chore: Move next.config.js file into the correct directory ( #7580 )
...
fix: moves next config file into the correct directory
2023-06-01 14:49:45 +02:00
Balázs Orbán
142abe3eea
feat: allow empty account mapper
2023-06-01 14:49:45 +02:00
Balázs Orbán
da211e6cbe
chore: revert picture to image
2023-06-01 14:49:45 +02:00
Balázs Orbán
79ad6156ed
feat: add update session to core ( #7505 )
...
* feat: add update session to core
Integrates #7056 into `@auth/core`
* resolve default user after jwt callback
2023-06-01 14:49:45 +02:00
Rémi Robichet
28f287d63e
docs(example): update broken link ( #7504 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2023-06-01 14:49:45 +02:00
Balázs Orbán
1ab77d0e11
chore: move build to root
2023-06-01 14:49:45 +02:00
Balázs Orbán
787c1ff7d0
chore: add build to manual publish
2023-06-01 14:49:45 +02:00
Balázs Orbán
208b3b4a43
chore: reduce breaking changes on Account mapping
...
Reverts some changes on #7369 so DB migration won't be needed
2023-06-01 14:49:45 +02:00
Balázs Orbán
c4f6330f70
chore: tweak manual release version
2023-06-01 14:49:45 +02:00
Balázs Orbán
44127068e1
chore: tweaks
2023-06-01 14:49:45 +02:00
Balázs Orbán
9e3f1aacf7
chore: tweak
2023-06-01 14:49:45 +02:00
Balázs Orbán
83051c6862
chore: skip test for manual release
2023-06-01 14:49:45 +02:00
Balázs Orbán
f1acab67e6
chore: separate manual release job
2023-06-01 14:49:45 +02:00
Balázs Orbán
6a31ed3216
chore: support release any package as experimental
2023-06-01 14:49:45 +02:00
Balázs Orbán
0998fc0b98
chore: use @ts-ignore
2023-06-01 14:49:45 +02:00
Balázs Orbán
bd20d750c2
fix(docs): remove extra heading
...
Fixes #7426
2023-06-01 14:49:45 +02:00
Balázs Orbán
8e29b4df0c
fix: allow handling OAuth callback error response
...
related #7407
2023-06-01 14:49:45 +02:00
Balázs Orbán
9632a56d45
chore: type fixes
2023-06-01 14:49:45 +02:00
Balázs Orbán
12161b9613
fix: loosen profile types
2023-06-01 14:49:45 +02:00
Balázs Orbán
a3b5276a5a
chore: improve errors, add more docs ( #7415 )
...
* JWT Token -> JWT
* document some errors
* improve errors, docs
2023-06-01 14:49:45 +02:00
Balázs Orbán
7c1078b9a9
feat(adapters): add Account mapping before database write ( #7369 )
...
* feat: map Account before saving to database
* document `acconut()`, explain default behaviour
* generate `expires_at` based on `expires_in`
Fixes #6538
* rename
* strip undefined on `defaultProfile`
* don't forward defaults to account callback
* improve internal namings, types, docs
2023-06-01 14:49:45 +02:00
Victor
37d3461155
docs: fix default maxAge formula ( #7406 )
2023-06-01 14:49:40 +02:00
Balázs Orbán
6111662df7
docs: Update creating-a-database-adapter.md
2023-04-30 09:52:47 +02:00
Zack Reneau-Wedeen
5da6549c48
chore(docs): update xata docs link ( #7397 )
...
Update link to a working page (Workspaces API reference)
Co-authored-by: Nico Domino <yo@ndo.dev >
2023-04-28 22:26:30 +02:00
GitHub Actions
1ca87809d6
chore(release): bump package version(s) [skip ci]
2023-04-28 15:09:12 +00:00
Balázs Orbán
7f6967fc3c
chore: update lock file
2023-04-28 16:55:31 +02:00
Dawid Weltrowski-Knopik
2313ef63e0
fix(adapters): allow neo4j-driver@5 as a peer dependency ( #7392 )
...
* upgrade neo4j-driver
* Correcting depdendency to also allow for ^4.0.0 and pnpm install
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-04-28 15:54:48 +01:00
Balázs Orbán
523fcbab71
fix(docs): document Callback URL for every provider
2023-04-28 16:52:10 +02:00
Balázs Orbán
83d8b447db
chore: clean up Next.js example
2023-04-28 09:50:44 +02:00
Balázs Orbán
ddffa57d00
docs: fix syntax error
2023-04-27 10:06:12 +01:00
peterhirn
807d5d7920
fix(ts): support moduleResolution node16 and nodenext ( #7351 ) ( #7374 )
2023-04-27 10:03:25 +01:00
RubenSmn
0f0dd9228a
docs: fix code snippet being smushed on mobile ( #7197 )
2023-04-26 13:06:11 +01:00
Jack Oats
b087fdb817
docs: resize icons on screen size change ( #7309 )
...
* Update size of icons on load && on resize event
Added 'use client' since window object would only be defined on client side ( and using hooks );
Thought it'd be a cool feature to add :)
* Apply suggestions from code review
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-04-26 13:00:15 +01:00
Lluis Agusti
443bfd6c32
fix(docs): move provider docs to source code ( #7275 )
...
* chore: wip
* chore: wip
* zoom, zoho, ZITADEL
* add logos for Zoom, zoho, zitadel
* add the rest of the providers
* add logos
* revert typo
* move icons to docs
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-04-24 09:21:24 +01:00
Balázs Orbán
7c44d916ed
chore: fix Next.js example sync
2023-04-23 08:14:52 +01:00
John Abdou
b489fef2e2
docs: fix link ( #7334 )
...
* Fixed broken link to auth.js core documentation
* Update README.md
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-04-23 09:22:14 +03:00
Balázs Orbán
98add24526
chore: bump react types
2023-04-21 12:25:48 +02:00
GitHub Actions
0ddd47cc0a
chore(release): bump package version(s) [skip ci]
2023-04-20 09:38:01 +00:00
Balázs Orbán
0100888d9b
fix: consume nonce exactly once ( #7327 )
...
* fix: consume nonce exactly once
* tweak state handling
2023-04-20 10:25:41 +01:00
Balázs Orbán
9eeea02fe2
feat: redirect proxy ( #7326 )
...
* types
* add `redirectProxy` option
* ignore if no state
* empty commit
* tweak proxy detection
* add origin proxy check to checks
* run randomstate decode
* don't generate state data when no proxy
* ignore next-2
* update dev app
* clarify `UnknownAction` error
* rename to `AUTH_REDIRECT_PROXY_URL`
* simplify state
* clear todos
* cleanup
* clarify comment
* use `InalidChecks` error
* simplify
* clarify errors
* add debug logger to redirect proxy
* add proxy redirect logger
* don't throw error when no origin on proxy
* fix redirect_uri in callback
* add docs/guide
* sort imports
* docs: rephrase
2023-04-20 09:53:44 +01:00
GitHub Actions
0a57fea430
chore(release): bump package version(s) [skip ci]
2023-04-20 08:41:41 +00:00
Tim Schneider
51750e1a06
fix(adapters): correct peer dependency ( #7310 )
...
Typo in package.json
Missing | in package.json causing ETARGET and peer dependency errors
2023-04-20 09:23:30 +01:00
Balázs Orbán
039a14d992
fix: clarify unknown action error
2023-04-19 10:40:51 +02:00
Balázs Orbán
da821d2789
chore: cleanup todos, format
2023-04-19 10:40:42 +02:00
Balázs Orbán
be5c42e350
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-04-19 10:36:50 +02:00
Balázs Orbán
b68f461f8b
chore: upgrade next
2023-04-19 10:35:34 +02:00
Nick Parsons
95c5ba0b5d
docs: Update Clerk sponsorship URL ( #7305 )
...
- Change Clerk URL from `https://clerk.dev ` to `https://clerk.com `
- Fix alt from copy/paste
2023-04-18 20:13:19 +01:00
GitHub Actions
25388de027
chore(release): bump package version(s) [skip ci]
2023-04-18 17:45:29 +00:00
Balázs Orbán
ad77e1c2b7
chore: trigger CI
2023-04-18 19:31:51 +02:00
Balázs Orbán
cd654c3001
chore: trigger CI
2023-04-18 19:09:53 +02:00
Balázs Orbán
6f9ca4143d
fix: detect origin when instanceof Request check fails ( #7303 )
2023-04-18 17:46:49 +01:00
Balázs Orbán
e97b27414a
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-04-17 11:41:02 +02:00
Balázs Orbán
9018939ee7
docs: clean up databases intro page
...
#7221
2023-04-17 11:40:59 +02:00
Raul
c2fc41b44d
chore: fix "Contributing guide" link ( #7279 )
2023-04-17 10:36:23 +01:00
Chris Hayes
01d7eb4feb
docs: Remove --save from install command ( #7277 )
...
Remove --save from install command
--save is no longer needed on npm install.
2023-04-17 10:35:48 +01:00
Balázs Orbán
2388c20cc6
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-04-17 11:32:26 +02:00
Balázs Orbán
9a1bef9e72
chore: skip adapters in docs dev by default
2023-04-17 11:32:23 +02:00
Balázs Orbán
35a72d2273
chore: update typedoc dependencies
2023-04-17 11:32:09 +02:00
Abdulaziz Askaraliev
5f1b75a7a2
fix(providers): fix type definition and docs for yandex ( #7170 )
...
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-04-16 14:47:06 +07:00
Thang Vu
fa58065951
chore: move next-auth from v4 to main ( #7265 )
2023-04-15 17:02:46 +01:00
Balázs Orbán
b31f2af66c
feat: misc improvements ( #7228 )
...
* tweak types, fix typos
* filter non-oauth files when generating provider types
* allow implicit config invoke
* remove workaround for multiple cookie settings in Next.js
* feat: return `null` when session does not exist
* error on missing checks when configured
2023-04-12 11:40:55 +01:00
Prana Adiwira
71bb6f2590
fix(providers): Use the proper check for Reddit ( #7224 )
...
Reddit expects the `state` parameter
https://github.com/reddit-archive/reddit/wiki/OAuth2#authorization
2023-04-12 11:37:31 +01:00
Balázs Orbán
6c07331cc5
chore: upgrade turbo
2023-04-06 12:58:10 +02:00
Saurav Maheshkar
c8ef94b2be
chore: move prettier and eslint configs under package.json ( #7145 )
2023-04-06 12:57:16 +02:00
jakzo
75a59fbd92
chore(docs): fix dynamodb typo ( #7130 )
...
fix: typo
2023-04-06 12:57:09 +02:00
Balázs Orbán
3dd47b0735
docs(example): remove unstable_ prefix
2023-03-31 05:01:58 +02:00
Balázs Orbán
4dc1d421f8
docs: mention client in OAuth config options
...
Related issue #7114
2023-03-30 18:34:30 +02:00
Balázs Orbán
99ca67f1cf
docs: fix typo
2023-03-28 13:59:08 +02:00
Balázs Orbán
a087df8494
docs: fix some links
2023-03-28 13:47:53 +02:00
Sai Srikar Dumpeti
1aa4994de6
docs: respect color scheme ( #7076 )
2023-03-28 04:06:21 +02:00
Alan Hoskins
88023f69b9
fix(docs): remove extra install ( #7081 )
2023-03-27 15:47:32 +02:00
Alan Hoskins
b02057a72d
fix(docs): fix broken links links ( #7083 )
...
Co-authored-by: Alan Hoskins <ahoskins@knowland.com >
2023-03-27 15:46:43 +02:00
Balázs Orbán
400da8c766
fix(providers): mention Email Address as required for Azure B2C
...
closes #7071
2023-03-27 15:44:23 +02:00
Andres Rodriguez
b48104801b
chore(provider): added svg for Reddit ( #7050 )
...
Added svg for Reddit
Co-authored-by: Nico Domino <yo@ndo.dev >
2023-03-27 09:36:47 +02:00
Balázs Orbán
ccbbc800d2
docs: rephrase buttons on landing page
2023-03-27 02:06:33 +02:00
Abdulaziz Askaraliev
d7888263ca
fix(providers): update Yandex to TypeScript ( #7054 )
...
* fix(providers): yandex add typescript.
* fix(providers): yandex add avatar to scope
* fix(providers): Yandex - add types & avatar scope
* fix(providers): Yandex - permissions list
* Apply suggestions from code review
* Apply suggestions from code review
* docs(provider): added comments for
* revert yandex.ts from next-auth/providers/
* fix(providers): yandex fix typo
* revert
* Update [...nextauth].ts
* Update yandex.ts
* Update yandex.ts
* Update [...nextauth].ts
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-03-27 00:38:06 +01:00
Balázs Orbán
47d3151410
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-03-27 01:32:54 +02:00
Balázs Orbán
7d264860ab
chore: package builds as docs#dev task dependencies
2023-03-27 01:32:50 +02:00
Abdulaziz Askaraliev
6184b936f5
chore(docs): show close button on announcementBar ( #7074 )
...
* fix #6935 : show close button.
* fix(global-css): show close button on annoucement bar
dev and build were generating different results, adding `!important` fixed on build.
2023-03-26 21:48:36 +02:00
Balázs Orbán
1954258a0a
docs: make security page top-level
2023-03-26 03:46:51 +02:00
Jabed Zaman
c580f0db22
docs: fix session.user is possibly undefined. ( #7058 )
...
fixed the code snippet for the example to consume session via hooks. Threw an error earlier stating 'session.user' is possibly 'undefined'.
2023-03-25 20:15:38 +00:00
Balázs Orbán
d1cf701ed9
docs: change admonition titles
2023-03-24 12:46:02 +01:00
Balázs Orbán
69398e2d3a
docs: clarify guides overview
2023-03-24 12:43:56 +01:00
Balázs Orbán
856b5c50fc
docs: change section title
2023-03-24 12:43:40 +01:00
Balázs Orbán
2830b7de5b
docs: fix some typos
2023-03-24 12:43:23 +01:00
Balázs Orbán
40a0faa586
docs: remove outdated guides
2023-03-24 12:43:08 +01:00
Balázs Orbán
a6b4d958ac
docs: open basics guides by default
2023-03-24 12:42:52 +01:00
Balázs Orbán
cc13df9d51
docs: tweak announcement bar
2023-03-24 12:42:41 +01:00
Balázs Orbán
06b8d4772c
docs: simplify
2023-03-24 03:44:59 +01:00
Balázs Orbán
d644d1fcbf
docs: add sidebar to API reference
2023-03-24 03:43:15 +01:00
Balázs Orbán
380f2de961
docs: add API reference overview
2023-03-24 03:29:29 +01:00
Nikhil Dev Chunchu
dc5f3e1873
chore(docs): update using-a-database-adapter.md ( #7028 )
...
Update using-a-database-adapter.md
2023-03-22 09:30:56 +01:00
Balázs Orbán
93f3fcd1b7
chore: update TypeDoc
2023-03-21 19:38:50 +01:00
Lluis Agusti
1d9b9ba47c
docs(adapters): source content + overview ( #7023 )
...
* docs(adapters): source content + overview
* Apply suggestions from code review
* add adapter packages as docs dependencies
* clean up docusaurus config
* clean up database overview
* fix some links
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-03-21 18:26:52 +00:00
Balázs Orbán
8f6108f230
docs: fix Mermaid rendering, lock gatsby playground versions
2023-03-21 18:54:10 +01:00
Balázs Orbán
15943d6696
docs: fix indent
2023-03-21 01:02:20 +01:00
Balázs Orbán
81589bf738
docs: remove/rename files/directories
2023-03-21 00:49:39 +01:00
Balázs Orbán
09402bf2fc
fix: correct logo link
2023-03-20 22:45:14 +01:00
Balázs Orbán
e39a968a7b
fix: correct logo link
2023-03-20 22:38:00 +01:00
Balázs Orbán
b03378be7f
fix: correct links
2023-03-20 22:37:27 +01:00
Balázs Orbán
af415e9438
fix: correct link
2023-03-20 22:31:12 +01:00
Balázs Orbán
90eeeeab2f
docs: unify adapters ( #7013 )
...
* remove unmaintained changelogs
* move logos to docs
* unify readmes
* fix logo urls
2023-03-20 21:28:23 +00:00
Balázs Orbán
f0b475fc72
docs: move adapters sidebar around
2023-03-20 21:59:19 +01:00
Balázs Orbán
f4f8c4a0b3
fix: links and references
2023-03-20 21:56:10 +01:00
Thang Vu
6f2cb460c9
feat: rewrite PouchDB Adapter ( #6745 )
...
BREAKING CHANGE:
Complete rewrite of the package. It is now published as ESM-only and written for `next-auth@4`. `next-auth@3` support is removed.
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-03-20 20:50:25 +00:00
Balázs Orbán
46f285f6f0
chore: fix test
2023-03-20 21:45:25 +01:00
Balázs Orbán
6bdb8af78d
fix(test): export _id function for tests
2023-03-20 21:39:44 +01:00
James Billot
04e0637fd8
chore: fix typo in 'collectionsFactory' ( #6985 )
2023-03-20 17:47:38 +01:00
David Prothero
b5712448a1
fix(docs): correct module name ( #6996 )
2023-03-20 17:47:01 +01:00
Gabriel Manor
605d15c3cc
docs: Add Permit.io Bronze Sponsor ( #7008 )
2023-03-20 17:42:11 +01:00
Anti Revoluzzer
d1479125cb
fix: make nonce work correctly ( #6998 )
...
Co-authored-by: Anti Revoluzzer <anti@siimpl.io >
2023-03-20 12:07:11 +00:00
Abdulaziz Askaraliev
2e09bc0d19
docs: show close button ( #7007 )
2023-03-20 11:55:57 +00:00
Balázs Orbán
843fc6ff8f
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-03-20 12:51:22 +01:00
Balázs Orbán
6695ff8503
chore: add missing outputs to Turbo cache
2023-03-20 12:51:18 +01:00
Abdulaziz
80c1f375b8
docs: fix announcementBar fixed height cutting content inside itself ( #6934 ) ( #6975 )
2023-03-16 11:53:01 +01:00
Abdulaziz
5a13288d47
docs: fix text overflow in li tags ( #6973 )
2023-03-16 11:52:13 +01:00
Balázs Orbán
26201e6271
chore: fix indentation
2023-03-16 02:23:46 +00:00
Balázs Orbán
d0d7b90ba1
chore: fix rm command
2023-03-16 02:59:16 +01:00
Balázs Orbán
874624dfbe
fix(ts): fix type
2023-03-16 02:58:17 +01:00
Balázs Orbán
4b5cd08800
chore: add fauna adapter as docs dep
2023-03-16 02:53:30 +01:00
Lluis Agusti
1c104afef9
docs(fauna): move content to source ( #6919 )
...
* docs(fauna): move content to source
* chore: fix spelling
* Apply suggestions from code review
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-03-16 01:50:21 +00:00
Ólafur Waage
ff5b8ba8e2
fix(docs): Update documentation ( #6956 )
...
* Adding correct sveltekit client doc links.
* Updating urls for sveltekit index.
2023-03-16 01:02:27 +01:00
Jonas Strassel
42d5899efd
fix(adapters): allow mongodb@5 as peer dependency ( #6938 )
2023-03-14 13:31:01 +01:00
Jonas Strassel
b278975c3f
chore(ci): disable node cache to speed up ci ( #6939 )
2023-03-14 13:29:18 +01:00
Ábris Simon
997e595b5b
fix(docs:) simplify authorization example ( #6910 )
...
* simplify authorization example for sveltekit
* Apply suggestions from code review
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-03-10 16:41:00 +00:00
Balázs Orbán
527c25b128
chore: add clean script to dynamodb adapter
2023-03-10 10:56:09 +01:00
Balázs Orbán
0e2bbda537
docs: remove duplicate API reference
2023-03-10 10:51:17 +01:00
Balázs Orbán
7f3b35593f
chore: tweak turbo config
2023-03-10 10:37:47 +01:00
Lluis Agusti
bce6b00c43
docs(dynamodb): move content to source ( #6903 )
...
* chore: wip
* chore: done
* chore: fix
* update lock file
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-03-09 11:33:53 +00:00
Balázs Orbán
1bbd5d51d1
chore: add adapters as docs dependencies
2023-03-09 12:24:00 +01:00
Lluis Agusti
b24b02fe71
docs(mongodb): move content to source ( #6901 )
...
* docs(mongodb): move content to source
* chore: document options
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-03-09 11:22:54 +00:00
Lluis Agusti
2c5c4d18c4
docs(typeorm): move content to source ( #6896 )
...
* docs(typeorm): move content to source
* chore: fix fn
* chore: document options
* Update index.ts
* chore: update logo
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-03-09 11:20:04 +00:00
Balázs Orbán
e3f9b398f0
chore: add adapters to docs as dependencies
2023-03-09 12:00:19 +01:00
Balázs Orbán
ab13930020
chore: tweak turbo cache
2023-03-09 11:48:45 +01:00
Nico Domino
f6bb16b264
chore: update README sponsors - fusionauth level ( #6892 )
2023-03-08 16:54:54 +00:00
Nico Domino
a220245d03
chore(repo): add FusionAuth to README supporters ( #6883 )
...
* chore(repo): add FusionAuthu to README supporters
* chore(repo): put sponsors on two lines of 5
2023-03-07 08:53:25 +07:00
Lluis Agusti
7462e797de
fix(adapter): improve Adapter docs, add runtime assertions ( #6877 )
...
* docs(adapters): move dgraph adapters docs to source code
* refactor: review suggestions (1)
* docs(prisma): move content to source code
* chore: sort
* fix: dgraph logo and content
2023-03-05 17:19:04 +01:00
Balázs Orbán
36286b1fae
fix(adapter): improve Adapter docs, add runtime assertions ( #6612 )
...
* fix(ts): improve Adapter documentation
* chore: simplify code
* assert missing adapter methods
* add federated logout guide link
* oidc -> oauth
2023-03-05 15:39:23 +00:00
Nico Domino
2e8e90a9be
chore(docs): new guide for sending email via http api ( #6555 )
...
* chore(docs): new guide for sending email via http api
* chore(docs): prettier code blocks
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* fix: relative links and remove prisma specific mention
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/guides/04-providers/03-email-http-api.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* chore: reword to be more inclusive
* feat: use custom provider
* Apply suggestions from code review
* code review changes
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-03-05 15:32:08 +00:00
Balázs Orbán
d06a552bf6
chore: format
2023-03-05 16:07:51 +01:00
Lluis Agusti
5cb8dd5f37
fix(docs): add docs to source code ( #6870 )
...
* docs(adapters): move dgraph adapters docs to source code
* refactor: review suggestions (1)
2023-03-05 15:57:02 +01:00
GitHub Actions
7c1a3b547e
chore(release): bump package version(s) [skip ci]
2023-03-05 05:08:02 +00:00
Josh Schlesser
2534ae8801
feat(sveltekit): allow dynamic authOptions ( #6744 )
...
* added optional dynamic sveltekit options
* changed dynamicOptions function to async
* converted dynamicOptions to a named type
* updated inline docs to show async capabilities
* Update packages/frameworks-sveltekit/src/lib/index.ts
Co-authored-by: Thang Vu <hi@thvu.dev >
* Update packages/frameworks-sveltekit/src/lib/index.ts
Co-authored-by: Thang Vu <hi@thvu.dev >
* Update packages/frameworks-sveltekit/src/lib/index.ts
Co-authored-by: Thang Vu <hi@thvu.dev >
* Update packages/frameworks-sveltekit/src/lib/index.ts
Co-authored-by: Thang Vu <hi@thvu.dev >
* Update packages/frameworks-sveltekit/src/lib/index.ts
Co-authored-by: Thang Vu <hi@thvu.dev >
* refined to a simpler function signature
* removed redundant return statement
* Apply suggestions from code review
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-03-04 12:21:14 +07:00
Thomas Guillet
14a120277b
docs(sveltekit): Write the explicit file to update in sveltekit ( #6846 )
2023-03-01 09:31:30 +07:00
Josh Schlesser
c49f484743
fix(providers): add default user agent for GitHub ( #6742 )
...
See: https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#user-agent-required
2023-02-28 12:56:28 +01:00
Richard Tuin
676b39d5b1
docs: Improve naming on role based access ( #6820 )
2023-02-28 12:54:26 +01:00
Balázs Orbán
e27dbcab2f
chore: tweak "incomplete" comment
2023-02-28 12:48:51 +01:00
Thang Vu
63805c7d75
fix: JWT maxAge default to Session maxAge value ( #6829 )
...
* fix: JWT maxAge default to Session maxAge value
Co-Authored-By: Ethan Wilkes <33569440+roberte777@users.noreply.github.com >
* Move to core
Co-Authored-By: Ethan Wilkes <33569440+roberte777@users.noreply.github.com >
---------
Co-authored-by: Ethan Wilkes <33569440+roberte777@users.noreply.github.com >
2023-02-27 08:30:14 +07:00
GitHub Actions
5d1c35e8aa
chore(release): bump package version(s) [skip ci]
2023-02-24 14:20:38 +00:00
James Birtles
a77f557cbf
fix: claims being serialized multiple times over ( #6781 )
2023-02-23 15:02:13 +01:00
Thang Vu
657492d921
docs: Improve Getting Started ( #6551 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Lluis Agusti <hi@llu.lu >
2023-02-23 14:55:14 +01:00
Will
d1d63bddba
chore: Add 🥈 Silver Financial Sponsors ( #6757 )
...
Add Silver Sponsors to the README
2023-02-23 11:32:48 +07:00
Will
99ac4899b5
feat(providers): add Beyond Identity Provider ( #6013 )
...
* Add Beyond Identity Provider
* Add Beyond Identity OIDC Provider
* Add Beyond Identity OIDC Provider
* Add "pkce" support
* Mirror Auth0 instead of Okta
* Code Review feedback
2023-02-23 11:04:21 +07:00
Balázs Orbán
2130765a57
docs: remove duplicate from sidebar
2023-02-19 17:13:06 +01:00
Balázs Orbán
4079274aaf
fix(providers): document Azure AD B2C
2023-02-19 17:12:54 +01:00
OrJDev
3d7985fd6d
fix: multiple set-cookie headers ( #6749 )
...
* fix: multiple set-cookie headers
* fx
2023-02-17 19:08:41 +01:00
Thang Vu
331e0ce51e
fix(adapters): comply to Node.js native ESM resolver ( #6753 )
...
* fix(adapters): comply to Node.js native ESM resolver for Firebase adapter
* fix import
* use single file
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-02-17 14:39:06 +00:00
Balázs Orbán
8af666a4cc
fix: correct package name
2023-02-17 13:05:40 +01:00
Jakob Norlin
fed0a67917
fix: compatibility with edge runtimes ( #6739 )
...
* Bump @panva/hkdf to v1.0.3
Fixes #6736
* Update to v1.0.4
v.1.0.3 failed to publish it seems
* update lockfile
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-02-17 11:24:17 +00:00
Erik André Jakobsen
0332d86942
docs: fix dead external prisma link ( #6721 )
...
A very minor change, but thought I would fix it when I saw it :)
2023-02-17 11:15:49 +00:00
Balázs Orbán
8b38d32430
docs: update refresh token guide
...
closes #6696
2023-02-13 13:44:40 +00:00
Balázs Orbán
1e5f840a26
chore: fix import
...
fixes #6699
2023-02-13 14:31:22 +01:00
Lioness100
5981712681
fix: address typos ( #6701 )
...
* docs: fix typos
* revert: typo fixes in packages/next-auth
2023-02-13 12:51:54 +00:00
Skyf0l
dd2b85c6a5
chore: add missing angle bracket in package.json contributors ( #6698 )
2023-02-12 21:01:56 +07:00
Balázs Orbán
3c0475acae
fix(ts): fix typo in JSDoc
2023-02-10 02:18:08 +01:00
Balázs Orbán
416881c4c9
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-02-10 02:10:30 +01:00
Balázs Orbán
b91167091c
fix(ts): use default exports for all providers uniformly
...
closes #6615
2023-02-10 02:10:27 +01:00
JT A
497dacff41
docs: fix code example nesting ( #6666 )
...
While doing the Getting Started guide, we noticed that the configuration was incorrect.
cc: @obrowner-rdc
2023-02-10 01:51:29 +01:00
JT A
2a1e1d1cd2
docs: use correct env variable names ( #6668 )
...
The documentation had the incorrect environment variable names used in the configuration for `Email` provider.
2023-02-10 01:50:00 +01:00
Balázs Orbán
00f65b3476
docs: fix indent
2023-02-10 01:47:55 +01:00
Pavlos Vinieratos
470e55f8db
docs: fix typo ( #6674 )
...
Update 02-oauth-tutorial.mdx
2023-02-10 01:42:43 +01:00
Balázs Orbán
d722962206
fix(ts): correct credentials types in authorize callback ( #6648 )
...
* fix(ts): correct `credentials` types in `authorize` callback
* Apply suggestions from code review
Co-authored-by: Thang Vu <hi@thvu.dev >
---------
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-02-09 13:05:56 +01:00
AlandSleman
cee1bddbd5
docs: Fix Getting started page ( #6636 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-02-07 15:08:29 +01:00
Rémi Robichet
e0ae913e5c
docs: fix type import ( #6638 )
2023-02-07 15:06:48 +01:00
Thang Vu
1db27fcd07
chore(monorepo): cache docs/build
2023-02-06 10:03:32 +07:00
Thang Vu
95407df289
chore(monorepo): cache typedoc generated files
2023-02-06 09:54:36 +07:00
Balázs Orbán
22adc2eb3c
docs: fix redirects
2023-02-06 00:04:44 +01:00
Balázs Orbán
725f976b39
docs: fix redirects
2023-02-06 00:03:28 +01:00
MatyiFKBT
28ae5d4639
fix(providers): update Foursquare API version ( #6620 )
2023-02-05 15:30:57 +01:00
GitHub Actions
0f4d43e9ad
chore(release): bump package version(s) [skip ci]
2023-02-05 13:52:31 +00:00
Thang Vu
28583b8ab0
feat: drop crypto dependency, convert to ESM ( #6603 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
BREAKING CHANGE:
- This package now only ships ESM, as all maintained Node.js versions have native support
- Dropped the `crypto` Node.js import in favor of `uuid`. When `globalThis.crypto` is the default in the future, we can remove `uuid` again
2023-02-05 14:44:33 +01:00
Balázs Orbán
1e7538a955
fix: publish .d.ts.map, add experimental warning
2023-02-05 14:42:07 +01:00
Wyatt Ades
4258857e52
feat(adapters): move to firebase-admin in Firebase Adapter ( #6225 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
fixes https://github.com/nextauthjs/next-auth/issues/5049
closes https://github.com/nextauthjs/next-auth/pull/6230
closes https://github.com/nextauthjs/next-auth/pull/5449
closes https://github.com/nextauthjs/next-auth/pull/5055
fixes https://github.com/nextauthjs/next-auth/issues/4927
BREAKING CHANGE:
The adapter now expects `firebase-admin` instead of the `firebase` package and also supports either passing a config object or a firestore instance.
2023-02-05 14:41:20 +01:00
Balázs Orbán
e9d8805609
docs: api reference restructure ( #6608 )
2023-02-04 15:39:12 +01:00
Mayvis
fb43c5da05
docs: enhance prisma mongodb doc to prevent warning ( #6598 )
...
Fixes https://github.com/nextauthjs/next-auth/issues/6597
2023-02-02 13:28:17 +01:00
Corey Jepperson
326eadf0ed
fix: don't add /error to url pathname when email verification is successful ( #6492 )
...
fix handleAuthorized making bad pth when authorize
Co-authored-by: Corey Jepperson <corey@entropy.cc >
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-01-31 17:37:38 +07:00
Thang Vu
a5e0db4bb3
feat(providers): add Notion provider ( #6567 )
...
* add notion provider along with logo and styles
"
* adjust notion documentation
* update issue template with Notion provider
* update docs and provider with code from TomYeoman
* feat: move Notion provider to core
* get it working
---------
Co-authored-by: Harrison Broadbent <harrisonbroadbent@gmail.com >
Co-authored-by: Harrison Broadbent <harrisonbroadbent@Harrisons-MacBook-Air.local >
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-01-31 17:10:47 +07:00
Balázs Orbán
334e23343a
chore: fix typo
2023-01-31 01:19:16 +01:00
OrJDev
be046a6cb2
chore: suggest using the correct command to seek for packages ( #6570 )
...
* fix: suggest using the correct command to seek for packages
* seek for adapter packages aswell
* cleanup: seek for auth org packages
2023-01-30 20:39:37 +01:00
Frank Dumont
bdee262abe
fix: typo in log message ( #6569 )
2023-01-30 20:37:53 +01:00
Balázs Orbán
3f89e668ec
fix(ts): mark options provider config option internal ( #6564 )
...
* chore(dev): use workspace modules in Svelte app
* fix(ts): mark `options` provider config option internal
2023-01-30 12:34:54 +00:00
Balázs Orbán
533320eb94
chore: generate oauth-types on build
2023-01-29 14:33:41 +01:00
James
dfe6509472
fix: comment Discord profile, fix @auth/sveltekit build on Windows ( #6550 )
...
* fix: discord types were inaccurate
* fix: build on windows computers
* Apply review suggestions
* Update discord.ts
---------
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-01-29 12:05:14 +00:00
Oskar
1bde7cc8df
fix(core): correct docs link ( #6446 )
2023-01-26 12:16:47 +00:00
Balázs Orbán
cef05d5e2d
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-01-26 13:11:14 +01:00
Balázs Orbán
c0dea283ba
fix(core): avoid circular dependency
...
Fixes #6508
2023-01-26 13:11:04 +01:00
Balázs Orbán
0204766e0f
fix(core): don't lock nodemailer version as peer dependency
2023-01-25 14:29:16 +00:00
Jérémie Sellam
a336ba762c
fix(adapters): allow already initialized firebase app 🐛 ( #6230 )
...
* 🐛 Fix already initialized firebase app
* remove comment
Co-authored-by: Jérémie Sellam <jeremie@southpigalle.io >
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-01-25 19:57:52 +07:00
Balázs Orbán
681d53c2f8
chore(core): cleanup
2023-01-24 14:01:40 +01:00
Thang Vu
06e891c0ea
chore: cache output for @auth/sveltekit
2023-01-24 15:22:42 +07:00
GitHub Actions
b9a84350b5
chore(release): bump package version(s) [skip ci]
2023-01-24 02:02:00 +00:00
Balázs Orbán
44c38247da
chore: trigger CI
2023-01-24 02:58:49 +01:00
Balázs Orbán
9b9af4d5e5
chore: bump versions [skip ci]
2023-01-24 02:56:31 +01:00
Balázs Orbán
fd2179bdca
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-01-24 02:42:16 +01:00
Balázs Orbán
7bb037bb9d
chore: temp. disable E2E tests
2023-01-24 02:42:13 +01:00
Robin Panta
52f70e9f4f
docs: update "guide deep-dive" link ( #6473 )
...
Fixes https://github.com/nextauthjs/next-auth/issues/6466
2023-01-24 02:34:45 +01:00
Balázs Orbán
505f69b519
chore: fix pipeline
2023-01-24 02:29:10 +01:00
Balázs Orbán
b21709db40
chore: update lock file
2023-01-24 02:26:49 +01:00
Balázs Orbán
aff7b37ef9
Merge branch 'main' of github.com:nextauthjs/next-auth
2023-01-24 02:26:00 +01:00
Balázs Orbán
daa85be1ad
Revert "chore(next-auth): remove engines restriction ( #6428 )"
...
This reverts commit 035836da98 .
2023-01-24 02:25:45 +01:00
Balázs Orbán
c31718ca10
fix(core): sign cookies with built-in jwt methods ( #6488 )
2023-01-24 02:21:56 +01:00
Balázs Orbán
fbcfedf0e8
fix(providers): default image to null for Azure AD
2023-01-24 02:21:27 +01:00
Balázs Orbán
bd032335eb
docs: rename file
2023-01-23 13:41:21 +01:00
Balázs Orbán
128e0f3a10
docs: update RBAC guide
2023-01-23 13:40:45 +01:00
Thang Vu
557fb9d741
chore: ignore e2e actions in forks
2023-01-23 12:28:48 +07:00
Thang Vu
b4d6ed5f5f
feat(providers): add Asgardeo provider ( #6452 )
...
* implement asgardeo auth provider
* Import asgardeo provider in to providers
* Improve provider configuration
* simplify and improve the asgardeo provider
* Delete package-lock.json
* converted server origin to organization
* revamp provider configs
* update profile interface
* Remove asgardeo issuer parameter and add docs
* fixed docs
* Update asgardeo.md
* Update docs and provider branding
* Remove mistakenly added code from dev app
* move to core
* Delete asgardeo.md
Co-authored-by: Yathindra <yathindrarawya123@gmail.com >
Co-authored-by: Yathindra Kodithuwakku <32919513+yathindrakodithuwakku@users.noreply.github.com >
Co-authored-by: Yathindra Kodithuwakku <32919513+yathindrak@users.noreply.github.com >
2023-01-22 01:30:42 +07:00
Richard Shin
035836da98
chore(next-auth): remove engines restriction ( #6428 )
...
* fix: add node 19 as compatible engine
* remove engines restriction
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-01-21 16:29:45 +07:00
Atila Fassina
294039a497
docs(xata-adapter): adjust json schema ( #6440 )
2023-01-20 11:17:00 +00:00
Balázs Orbán
b2450ef625
fix(providers): conform Twitch provider to spec with escape hatch ( #6365 )
...
* fix(core): add explicit non-conform escape hatch
* fix(core): default to first supported auth method
* fix(core): stringify `claims` authorization url param
* fix(providers): conform Twitch provider to spec with escape hatch
* configure `client_secret_post` explicitly in provider
2023-01-19 10:28:14 +00:00
Balázs Orbán
a81bb3e51e
feat(core): option to opt out of CSRF checks ( #6379 )
...
* feat(core): add way to opt-out of CSRF checks
* fix logic
* add warning if CSRF endpoint used when skipped
2023-01-19 10:27:18 +00:00
Robin Panta
bb506f7eb9
docs: Fix token expiry comparision in database strategy ( #6430 )
...
* Fix token expiry comparision in database strategy
fixes the condition used for example
in database strategy
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-01-18 15:26:23 +00:00
Thang Vu
87d9cc4244
feat: e2e tests ( #6380 )
...
* feat: e2e test init
* run e2e test on CI
* Add credentials to ci
* Update pnpm-lock.yaml
* move test to dev
* add dotenv
* remove in examples
* add e2e command
* revert
* add output cache for turbo e2e
* correct path for upload artifact
* Update release.yml
2023-01-18 19:43:50 +07:00
uatemycookie22
d2e3b76031
docs: Update 02-oauth-tutorial.mdx ( #6408 )
...
Fix typos in 02-oath-tutorial.mdx
2023-01-17 00:24:48 +01:00
Jan-David-Black
c36834b3b0
docs: Updating to _app.tsx ( #6398 )
...
file should be called `_app.tsx` instead of `_app.ts`
2023-01-17 00:24:04 +01:00
khuezy
8f7145801a
feat(adapters): expose DynamoDB adapter options ( #6370 )
...
* feat: add dynmodb adaption options
* fix typo
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-01-12 09:59:18 +00:00
Balázs Orbán
fdce27b8ca
fix(providers): remove Twitter OAuth 2.0 workaround
2023-01-11 13:00:15 +01:00
Rhys
4056dafa7a
docs: Minor grammar in email docs ( #6358 )
...
Grammar in email docs
2023-01-11 07:56:08 +01:00
Mahammedi Abdelghani
f0b61bd5fd
docs: fix broken links ( #6359 )
...
- fix some Provider options links ".js" --> ".ts"
2023-01-11 07:55:27 +01:00
Thang Vu
866e42b343
chore: revert to latest dependencies for examples
2023-01-10 21:05:06 +07:00
${Mr.DJA}
6d4cde4b02
feat(core): allow clearing cookies from jwt() ( #6337 )
...
* feat(core): allow clearing cookies from `jwt()`
* revert: allow clearing cookies from `jwt()`
* feat(core): re-apply changes against `@auth/core`
* revert: `decodeJWT` option
* doc: `jwt()` callback
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-01-10 12:11:52 +00:00
Ben
2377596bb6
chore(examples): avoid prefetch of non-existing routes in SvelteKit ( #6351 )
...
Avoid prefetch of non-existing routes
This avoids prefetch of the /auth/signin and /auth/signout virtual links as they do not exist in sveltkit routes
2023-01-10 11:56:25 +00:00
Balázs Orbán
3c7c25cefa
docs: improve some provider docs
2023-01-10 12:51:39 +01:00
Thang Vu
c441f681af
chore: don't use latest for examples dependencies
2023-01-10 13:37:51 +07:00
Balázs Orbán
c05951f0f9
docs: add Auth0 and GitHub header
2023-01-09 16:53:30 +01:00
Balázs Orbán
d142252499
chore: update lock file, prettier config
2023-01-09 13:29:28 +01:00
Nathan Meadows
700daec919
fix(docs): page.server.ts -> layout.server.ts ( #6326 )
...
Fix documentation mistake - page.server.ts -> layout.server.ts
2023-01-09 08:43:34 +00:00
OrJDev
d8481f3825
chore(core): use arrow function for generateSessionToken ( #6200 )
...
* fix
* prettify
* Update init.ts
Co-authored-by: Nico Domino <yo@ndo.dev >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-01-09 08:38:33 +00:00
Balázs Orbán
3539a35601
chore: trigger sync
2023-01-07 09:52:33 +01:00
Balázs Orbán
3be7bb7a79
chore: try fork
2023-01-07 09:50:12 +01:00
Balázs Orbán
031cdd13b2
chore: try adding deleteOrphaned back
2023-01-07 09:37:00 +01:00
Balázs Orbán
212b321f7e
chore: remove delete orphaned
2023-01-07 09:29:23 +01:00
Balázs Orbán
1ccb88b3f0
chore: try excluding git
2023-01-07 09:27:35 +01:00
Balázs Orbán
16d680b110
chore: revert
2023-01-07 09:04:13 +01:00
Balázs Orbán
6e027811ef
chore: set git config globally
2023-01-07 09:01:33 +01:00
Balázs Orbán
e5df406429
chore: try adding email+username
2023-01-07 08:56:25 +01:00
Balázs Orbán
e4ddb533ff
chore: hint that we want to use fine grained GH_PAT
2023-01-07 08:48:15 +01:00
Balázs Orbán
4e16b21a60
chore: update sync GH Action
2023-01-07 08:41:43 +01:00
Balázs Orbán
dd9f1b7421
chore: move provider logos under /img
2023-01-07 08:12:24 +01:00
Balázs Orbán
4ebec5d385
docs: fix marquee
2023-01-07 08:04:56 +01:00
Balázs Orbán
c1f3cbda3c
chore: move icons to website
2023-01-07 08:02:27 +01:00
Sacramentix
ba3ed049d1
fix: typo on example resposne -> response ( #6311 )
2023-01-07 07:49:56 +01:00
Balázs Orbán
9238294192
feat(core): Redesigned all default pages ( #5825 )
...
* feat(pages): Redesigned all default pages according to sketches discussed.
* chore(signin): Remove console.log
* fix(css): Makes cards scale down to 320px and have a fixed width on larger screens
* fix(styling): Adds margins on bottom and top of card.
* chore(docs): Change the documentation according to changes. Uploaded new images that reflect the new pages.
* fix(next-auth/core): Fixes correct styling of provider button across browsers.
* chore(docs): Add doc string to beta docs aswell
* feat: move changes to core
* revert change in next-auth
Co-authored-by: Nico Domino <yo@ndo.dev >
Co-authored-by: Thang Vu <hi@thvu.dev >
revert signin
2023-01-07 07:49:56 +01:00
Balázs Orbán
83c6bfe237
fix(core): improve stack traces ( #6259 )
2023-01-07 07:47:30 +01:00
Tyler Miller
07109616c8
docs(sveltekit): Typo fix ( #6309 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2023-01-07 07:47:30 +01:00
Ikko Eltociear Ashimine
95c8f7930e
chore: Fix typo in solid-start/README.MD ( #6305 )
2023-01-07 07:47:30 +01:00
Thang Vu
8005f0cdb0
chore: update watch command for next-auth dev
2023-01-07 07:47:30 +01:00
Finn
6e0ae59ed3
docs(providers): added JS doc's to the mattermost provider ( #6299 )
...
* aded js doc
* engerish
2023-01-07 07:47:30 +01:00
Kostas Botsas
1b19aa39b8
fix(adapters): remove formatVersion from Xata schema ( #5772 )
...
Xata schema has removed the formatVersion field, including it in a schema definition results in an error.
2023-01-07 07:47:30 +01:00
Balázs Orbán
69cda58707
fix(core): move types submodule top top
2023-01-07 07:47:30 +01:00
Balázs Orbán
b20a5f554a
feat(providers): add Mattermost provider ( #6290 )
...
* added mattermost provider
* upaded docs and removed callback uri
* username -> name
* updated types to match other providers
* cleanup
* add logos
* style sign-in button
* add JSDoc to profile
* add JSDoc comments
* correction
Co-authored-by: Balázs Orbán <info@balazsorban.com >
delete mattermost icons
2023-01-07 07:47:30 +01:00
Balázs Orbán
f8d77c4daf
chore: hardcode issue labeler markdown path
2023-01-05 12:14:57 +01:00
Balázs Orbán
a3d23450a8
chore: fix issue labeler path
2023-01-05 12:09:44 +01:00
Balázs Orbán
9abee0b2ee
chore: use import.meta.url in issue labeler
2023-01-05 12:07:44 +01:00
Balázs Orbán
5cf580d10b
chore(examples): clean up example READMEs, add deploy buttons
2023-01-05 11:18:01 +01:00
Thang Vu
00d495d9e3
chore: update email script
2023-01-04 21:54:22 +07:00
Thang Vu
5884574765
chore(dev): simplify header.js component
2023-01-04 21:53:55 +07:00
Thang Vu
ae5360b028
chore: cache output for @auth/core
2023-01-04 21:52:42 +07:00
Doodles
7c963515b5
docs: Add session management example for SvelteKit ( #6184 )
...
* chore(docs): Session management sample for Svelte
Added a code sample for managing the session through the $page store.
The sample demonstrates how to retrieve the session data in the root
+page.server.ts file and make it globally accessible through the $page
store, simplifying state management in the application. The previous
examples already used the data available in this store but did not show
how to set it.
* docs: Add authorization section to SvelteKit docs
This authorization section was added to make sure a few caveats with
SvelteKit were well documented to anyone using the library.
The problem is documented here: https://github.com/sveltejs/kit/issues/6315
Essentially, propagation of data between leafs is not guaranteed when
using the +layout.server.ts file as its load function is not guaranteed
to rerun every page change. The current approach to solve this is to do
authorization in each +page.server.ts file and additionally make sure to
grab the session data by awaiting the parent instead of directly
accessing the $page store, to make sure the information there is
current.
* docs: Fix small typesafety mistake in SvelteKit
PageLoad type should actually be PageServerLoad. Not setting this does
not actually generate any problems other than TypeScript complaining
that this type is not actually exported.
* docs: Add handle hook authorization management
Another way to handle authorization is through a path-based method. This
added part of the documentation uses the handle hook to protect certain
routes based on their path. The previous method which is per-component
is still present.
* docs: Simplify component approach for Svelte auth
Using event.locals.getSession() exposed by SvelteKitAuth instead of
relying in the root layout file making that available in the $page
store.
* docs: Complete SvelteKit authorization docs
Finalize the explanation for the URI-based approach and also clarify
interactions with the component-based approach.
* docs: Add formatting to vars in the SvelteKit docs
Format the variables like this: `var` so that it appears clearly as code
when reading the documentation.
Co-authored-by: Thang Vu <hi@thvu.dev >
2023-01-04 21:49:18 +07:00
Robin Gasi
8cf4cc2ea9
docs: Fixed typo ( #6277 )
2023-01-04 08:58:57 +00:00
GitHub Actions
9388a56efa
chore(release): bump package version(s) [skip ci]
2023-01-04 06:56:11 +00:00
Balázs Orbán
3a75fb955a
docs: simplify refresh token guide
2023-01-04 07:49:11 +01:00
Balázs Orbán
01bb91612a
fix(core): allow passing params only to endpoint configs
...
fixes #6273
2023-01-04 07:48:57 +01:00
Balázs Orbán
3b25935c83
fix(core): correctly pass user id in account
...
fixes #6209 , fixes #6222
2023-01-03 16:26:49 +01:00
Balázs Orbán
394920dfd4
chore(examples): prefer useSession over prop drilling
...
closes #5891
2023-01-03 16:07:37 +01:00
Raouf Chebri
85dc5bede8
docs: Update strava provider option url ( #6264 )
...
Update strava.md
2023-01-03 15:55:36 +01:00
Balázs Orbán
8f854c61d0
fix(core): allow custom endpoint config when issuer is present
...
closes #6244
2023-01-03 12:11:13 +01:00
Balázs Orbán
e8fbe58997
docs: update refresh token guide
2023-01-03 12:09:13 +01:00
Cameron Downey
d2288ee4cc
fix(docs): turn SvelteKitAuth to named import in code example ( #6250 )
2023-01-02 10:52:47 +00:00
Thang Vu
5a6f76bf2c
fix: docs build ( #6253 )
...
* fix: docs build
* chore: move next-auth output to dist
* chore: add next-auth as deps for doc
* Revert "chore: move next-auth output to dist"
This reverts commit 9596a9134e6de4f4bd8dcfaa6d3002e98863d8f8.
* remove dist prefix
2023-01-02 16:57:14 +07:00
Thang Vu
15bed6260c
chore: change Thang's email
2023-01-01 22:45:36 +07:00
Balázs Orbán
1423733d61
fix(adapters): define correct peer dependencies for DynamoDB ( #6249 )
...
* Add @aws-sdk/client-dynamodb as peer dependency
* Add missing DynamoDBClientConfig interface import
* Add missing installation requirements
Co-authored-by: Didi Keke <nyedidikeke@users.noreply.github.com >
2023-01-01 15:16:01 +00:00
Thang Vu
77d8f47f51
chore: restore turborepo next-auth#build.outputs
2023-01-01 22:06:50 +07:00
Balázs Orbán
3120d28299
chore: update lockfile
2023-01-01 16:03:09 +01:00
Nico Domino
e6a320bb0f
chore(docs): fix homepage logo, build, and lighthouse improvements ( #6238 )
...
* chore(docs): fix homepage logo size
* chore(docs): fix sidebars.js solid-start doc path name
* chore(docs): image file and size optimizations
* chore(docs): fix semantic misordered headings
* chore(docs): make banner link more descriptive
* chore(docs): add solid-start redirect
2022-12-31 21:28:59 +01:00
Birk Skyum
7d4d436efe
chore(examples): fix broken docs link in solidstart example ( #6241 )
2022-12-31 21:28:17 +01:00
GitHub Actions
c6f5c4d1cf
chore(release): bump package version(s) [skip ci]
2022-12-31 11:09:43 +00:00
Balázs Orbán
09a075cc7e
fix(core): loosen dependency version requirements
2022-12-31 12:05:23 +01:00
Balázs Orbán
f1475955ea
chore: solidstart -> solid-start
2022-12-31 11:53:29 +01:00
Balázs Orbán
e6f48775fa
chore: add packages to docs build dependency list
2022-12-31 11:44:40 +01:00
Balázs Orbán
ba87e86d47
chore: update lock file
2022-12-31 11:42:08 +01:00
Balázs Orbán
b0dd1fac93
chore: disable solid start example sync (temp)
2022-12-31 11:34:49 +01:00
Balázs Orbán
054288316b
chore(examples): rename solid-start to solidstart
2022-12-31 11:31:47 +01:00
Balázs Orbán
5e02019a3c
chore: what is yaml
2022-12-31 10:23:17 +00:00
Balázs Orbán
9da0e66193
chore: fix indent
2022-12-31 10:20:48 +00:00
OrJDev
287c8f0f91
feat(solid-start): introduce @auth/solid-start package/example ( #6158 )
...
* feat: add solid framework package and example
* solidstart docs
* Update 02-oauth-tutorial.mdx
* minor docs fixes
* Fix sidebar typo
* Update sync.yml
* Update sidebars.js
* minor fixes
* fix deps
* upgrade auth example
* Update root.tsx
* Update NavBar.tsx
* Update Protected.tsx
* protected
* move example
* Update sidebars.js
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-12-31 10:15:31 +00:00
Balázs Orbán
87ed5077ad
fix(sveltekit): make AUTH_SECRET dynamic
...
fixes #6231
2022-12-31 10:45:42 +01:00
Jonny
2cbf815445
fix(ts): add function overload to getToken ( #5823 )
...
* added function overload to getToken
* use MissingSecret error instead
* had wrong import
* change in core
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-12-31 09:26:23 +00:00
박찬혁
d63166db3a
fix(ts): narrow Kakao's birtday_type profile property type ( #6036 )
...
* feat: type safety for BirthDay
* update in core
* birthday single word
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-12-31 08:32:26 +00:00
Håkon Collett Bjørgan
f387793d71
fix(core): clarify that JWT is encrypted by default ( #5824 )
...
* fix(core): update CallbacksOptions.jwt docstring
Change description to reflect that JWT is encrypted by default
* update in core
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-12-31 07:52:48 +00:00
Balázs Orbán
b0ecf4e861
chore: update lockfile
2022-12-31 08:41:32 +01:00
Balázs Orbán
5a73c6efa3
chore: clean up pr labeler
2022-12-31 08:32:48 +01:00
Thang Vu
4aec142525
chore: split apps to dev, examples, playgrounds ( #6228 )
...
* chore: dev -> dev/nextjs
* chore: move to /examples
* chore: move to playgrounds, add dev/sveltekit
* Update sync.yml
* chore: dev scripts
2022-12-31 07:17:42 +00:00
1337cookie
45f423ed5d
chore: gitignore generated src/lib/pages/styles.ts ( #6210 )
...
* chore: gitignore generated src/lib/pages/styles.ts
* chore: gitignore generated styles.ts
* chore: gitignore generated styles.ts
* chore: remove generated styles.ts
2022-12-29 05:14:09 +01:00
1337cookie
2e52a89c52
docs: fix links to moved docs ( #6196 )
2022-12-27 16:10:31 +01:00
Zgîmbău Tudor
ecde35e9c4
docs: Fix hydration error for SSR example ( #6202 )
2022-12-27 16:09:10 +01:00
ndom91
5a51330d55
chore(docs): add turbo docs build dependency
2022-12-27 14:43:52 +01:00
Nico Domino
b2db3eabee
chore(docs): fix build step ( #6188 )
...
* chore(docs): fix build step temporarily
* fix: turbo docs build
2022-12-27 01:10:38 +01:00
Carlos Galarza
3865e44c1e
fix(core): typo in API reference ( #6194 )
2022-12-27 01:09:55 +01:00
Zgîmbău Tudor
9f5acc5749
docs: Fix the hooks code in oauth getting started ( #6193 )
...
* Fix the hooks code in oauth getting started
Fixes https://github.com/nextauthjs/next-auth/issues/6192
* Apply suggestions from code review
Co-authored-by: Nico Domino <yo@ndo.dev >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-12-27 01:08:37 +01:00
Iswar Mondal
0bbc8246b8
docs: Fixed the broken link of Contributing Guide in README ( #6191 )
...
* Updated the Contributing Guide link in README file
* Replaced the Contributing Guide broken link in README
2022-12-26 19:38:33 +01:00
Thang Vu
511f66b0a8
chore: enable remote caching for GH actions ( #6187 )
2022-12-26 11:38:30 +00:00
Thang Vu
ae57199258
chore(examples): unify /protected path behavior for Sveltekit and N… ( #6176 )
...
chore(examples): unify `/protected` path behavior for Sveltekit and Next.js
2022-12-25 17:56:10 +07:00
Balázs Orbán
aad425fced
docs: show property types
2022-12-25 09:53:53 +01:00
Balázs Orbán
8ef1010bb1
chore: attempt to fix supabase test
...
SUPABASE_SERVICE_ROLE_KEY could be an empty string
2022-12-25 06:38:29 +01:00
Balázs Orbán
950ca3169a
chore: make supabase wget quite
2022-12-25 06:30:03 +01:00
Balázs Orbán
edbf0fc011
chore: revert concurrency
2022-12-25 06:19:20 +01:00
Balázs Orbán
46bac818fe
chore: add concurrency to tests
2022-12-25 06:15:48 +01:00
Balázs Orbán
9e64eb0cdd
chore: simplify turbo config
2022-12-25 06:15:27 +01:00
Balázs Orbán
955e379330
chore: format
2022-12-25 05:59:12 +01:00
Balázs Orbán
7be4461253
chore: don't minify output CSS
2022-12-25 05:58:43 +01:00
Balázs Orbán
c2e06dc445
chore: upgrade oauth4webapi
2022-12-25 05:58:08 +01:00
Balázs Orbán
4dd70a5f6f
fix(ts): enable strict type checking
2022-12-25 05:55:25 +01:00
Balázs Orbán
98dbf56494
Merge branch 'main' of github.com:nextauthjs/next-auth
2022-12-25 05:19:32 +01:00
Balázs Orbán
6b4644f7e7
chore(adapters): refactor Supabase Adapter test
2022-12-25 05:18:53 +01:00
GitHub Actions
bcf909b69e
chore(release): bump package version(s) [skip ci]
2022-12-24 16:39:23 +00:00
Balázs Orbán
4dcdd21242
fix(providers): add state check to Twitter by default
...
Fixes #6135
2022-12-24 17:16:22 +01:00
Balázs Orbán
137d993a13
chore(dev): upgrade next
2022-12-24 17:15:35 +01:00
Balázs Orbán
8dda662cd6
chore: fix issue validator path
2022-12-24 16:43:51 +01:00
Balázs Orbán
8a438bab32
Merge branch 'main' of github.com:nextauthjs/next-auth
2022-12-24 16:36:33 +01:00
Balázs Orbán
4aaad03e9c
chore: fix issue validator
2022-12-24 16:36:30 +01:00
Fatih Aygün
4fa0d1fa2a
fix(core): correctly normalize endpoint configuration ( #6173 )
2022-12-24 15:31:47 +00:00
Balázs Orbán
c081773667
chore: use classic PAT for example sync
2022-12-24 15:25:57 +00:00
Balázs Orbán
1ab0a2aed4
fix(adapters): correct peer dependency for Supabase Adapter
...
Fixes #6172
2022-12-24 15:23:29 +00:00
Balázs Orbán
cac9816d32
chore: update sync examples PAT
2022-12-24 15:19:27 +00:00
Balázs Orbán
65defc709e
chore(examples): change to named import
2022-12-24 15:14:06 +00:00
Balázs Orbán
1601626d31
chore: prettier ignore generated file
2022-12-24 04:34:47 +01:00
Balázs Orbán
8c4f439279
fix: add package keywords
2022-12-24 04:32:10 +01:00
GitHub Actions
a3cc9cb5f8
chore(release): bump package version(s) [skip ci]
2022-12-24 03:15:11 +00:00
Balázs Orbán
0ad4be2809
fix(core): add header to README
2022-12-24 04:04:56 +01:00
Balázs Orbán
aea4aaf25f
fix(sveltekit): add header to README
2022-12-24 04:04:49 +01:00
Balázs Orbán
9bd7bc8a47
chore: fix docs building
2022-12-24 03:43:32 +01:00
Balázs Orbán
bf8fc9ca94
chore: fix docs scripts
2022-12-24 03:39:57 +01:00
Balázs Orbán
7116248e87
chore: mark @auth/* as prereleases
2022-12-24 03:30:53 +01:00
Balázs Orbán
ef8f353d94
Merge branch 'main' of github.com:nextauthjs/next-auth
2022-12-24 03:26:10 +01:00
Balázs Orbán
01620f9b7c
chore: drop older node.js versions, update pnpm
2022-12-24 03:26:07 +01:00
Balázs Orbán
87d41aff94
chore: re-add LICENSE as it seems to not be picked up
2022-12-24 02:22:29 +00:00
Balázs Orbán
2d21f5ea5e
chore: remove LICENSE file in favor of .github
...
See: https://github.com/nextauthjs/.github
2022-12-24 02:21:52 +00:00
Balázs Orbán
adf7cae7a0
chore: gitignore eslintcache
2022-12-24 03:17:50 +01:00
Balázs Orbán
f9b75e0a39
chore: remove extra tsconfigs
2022-12-24 03:16:50 +01:00
Balázs Orbán
9d6f54539d
chore: simplify eslint linting
2022-12-24 03:10:03 +01:00
Balázs Orbán
0e51c66e11
chore: remove package-level lint and format
2022-12-24 01:49:31 +01:00
Balázs Orbán
e47c3c81f1
chore: format
2022-12-24 01:47:46 +01:00
Balázs Orbán
d69edb8501
chore: tweak prettierignore
2022-12-24 01:46:17 +01:00
Balázs Orbán
e5c0e3513b
chore: upgrade monorepo-release package
2022-12-24 01:33:50 +01:00
Balázs Orbán
ca208ce732
chore: remove husky
2022-12-24 01:33:20 +01:00
Balázs Orbán
dcb601987b
Merge branch 'main' of github.com:nextauthjs/next-auth
2022-12-23 15:00:20 +01:00
Balázs Orbán
7fd799a9ac
chore: only lint with prettier
2022-12-23 15:00:13 +01:00
Balázs Orbán
fdd5e2390d
chore: format
2022-12-23 14:42:37 +01:00
Balázs Orbán
fdecbb59c4
chore: move all lint/format to top
2022-12-23 14:41:53 +01:00
Nico Domino
677d8a346f
chore(docs): fix aloglia docusaurus.config.js settings ( #6159 )
...
* chore: fix docusaurus algolia config
* chore: add empty 03-core dir
2022-12-23 12:41:43 +01:00
GitHub Actions
aad0b8db0e
chore(release): bump package version(s) [skip ci]
2022-12-23 06:16:36 +00:00
Balázs Orbán
137bbb8d84
fix(core): improve AuthConfig docs
2022-12-23 07:02:50 +01:00
Balázs Orbán
d7fbd05eba
chore: update monorepo-release package
2022-12-23 06:52:57 +01:00
Balázs Orbán
532aa24495
chore: use classic PAT for now
2022-12-23 05:10:27 +01:00
github-actions
f5da5a5f33
chore(release): bump package version(s) [skip ci]
2022-12-23 04:31:30 +01:00
Balázs Orbán
3b85f46c21
Update release.yml
2022-12-23 04:11:44 +01:00
Balázs Orbán
6aa1af2ffb
Update release.yml
2022-12-23 04:11:00 +01:00
Balázs Orbán
9364625681
Update release.yml
2022-12-23 04:09:30 +01:00
Balázs Orbán
1bf2e1d468
Merge branch 'main' of github.com:nextauthjs/next-auth
2022-12-23 03:58:39 +01:00
Balázs Orbán
ac304f17da
docs: fix link to sveltekit
2022-12-23 03:58:35 +01:00
Balázs Orbán
3a685b28f8
Update release.yml
2022-12-23 02:56:15 +00:00
Balázs Orbán
5b34b95c58
Update release.yml
2022-12-23 02:42:21 +00:00
Balázs Orbán
a706105205
chore: skip dynamodb as it times out
2022-12-23 03:28:07 +01:00
Balázs Orbán
39c78f27b5
fix(sveltekit): update to latest @auth/core, autogenerate API reference ( #6153 )
...
* docs(sveltekit): autogenerate API reference
* feat(sveltekit): update to use latest `@auth/core`
* chore: format
* chore: add auth packages as docs dependency
* chore: format
* chore: more formatting
* chore: don't run build before tests
2022-12-23 02:17:24 +00:00
Balázs Orbán
b179f15cf3
chore: tweak release config
2022-12-23 01:49:04 +01:00
Jordan Calhoun
54561a1231
docs: Typo correction ( #6151 )
...
PROT -> PORT
2022-12-22 22:42:56 +00:00
Nico Domino
0ea9ada3a9
chore(docs): remaining authjs.dev and repo clean up ( #6097 )
2022-12-22 18:04:52 +01:00
Nico Domino
209c368a73
chore(docs): add adapters and providers subdomain redirect in vercel.json ( #6146 )
2022-12-22 17:40:22 +01:00
Nico Domino
52c5b7cad3
chore(docs): update auth.js og-image ( #6145 )
2022-12-22 17:36:28 +01:00
Balázs Orbán
b8d83f52b3
chore(examples): attempt to fix gatsby deployment
2022-12-22 05:42:26 +01:00
Balázs Orbán
7dacfbabf0
chore(examples): attempt to fix gatsby deployment
2022-12-22 04:41:20 +01:00
Balázs Orbán
bb372cc5cc
docs: main page improvements
2022-12-22 04:05:22 +01:00
Unieveth
c6ca01a99e
docs: fix closing tag on oauth-tutorial ( #6134 )
...
Fixed wrong closing tag on oauth-tutorial
Changed closing tag on pages/overview.tsx from `</img>` to `</>
2022-12-22 02:37:36 +00:00
Balázs Orbán
6c45abf383
feat(core): improved logging / renames / new exports ( #6085 )
...
- Cleans up logging. Logs are now color-coded, added more debug logs, and errors can include some simple metadata (like provider id) to know which provider caused an issue.
- All errors are exposed via `@auth/core/errors`. Each error has a URL like: https://errors.authjs.dev#errorcode in the terminal, which points to the documentation explaining the problem in detail, suggesting a fix.
- Added a bunch of documentation that autogenerates the pages under https://authjs.dev/reference/core/modules/main
- Renames `AuthHandler` to `Auth` and `AuthOptions` to `AuthConfig`
- Throwing an error in `signIn` callback will now be caught as a general error and will redirect to `/error?error=Configuration`. If the callback returns `false`, it will redirect to `/error?error=AccessDenied`.
2022-12-22 02:36:54 +00:00
Balázs Orbán
2ba5314e35
docs(core): update jwtand types description
2022-12-21 02:05:55 +01:00
Balázs Orbán
582a3c339a
refactor(core): move types moduile to top-level
2022-12-21 01:54:49 +01:00
Balázs Orbán
ea23a93442
refactor(core): move jwt to a single file
2022-12-21 01:39:35 +01:00
ndom91
1d67ad41cc
chore(docs): add cleanUrls: true
2022-12-19 20:29:08 +01:00
Yahav
7c50b3da98
chore(docs): fix typo in 02-oauth-tutorial.mdx ( #6093 )
2022-12-19 20:24:55 +01:00
Balázs Orbán
1b2c373fa1
docs: capitalize
2022-12-19 13:39:23 +00:00
Balázs Orbán
f7275c7527
chore: type updates
...
fix import
chore: more docs update
2022-12-19 04:03:03 +01:00
Balázs Orbán
e699ff14b8
docs: /reference sidebar improvements ( #6115 )
...
* wip
* 🤖 lazy commit
* 🤖 lazy commit
* revert some changes, remove prettier jsdoc plugin for now
* sidebar tweaks
* add adapter module docs
* remove provider docs
* embed all reflections under modules
Based on: https://github.com/TypeStrong/typedoc/issues/2006
Related: https://github.com/tgreyuk/typedoc-plugin-markdown/issues/338
* no trailing slash, update theme
* updates
* update snapshot
* update sidebar and overview
2022-12-19 01:00:06 +00:00
ndom91
6eab7ac25f
chore(actions): revert var dump
2022-12-19 01:31:11 +01:00
ndom91
9b05dbc540
chore(actions): add path
2022-12-19 01:28:33 +01:00
ndom91
132a76d951
chore(actions): test github context
2022-12-19 01:26:54 +01:00
ndom91
66cbb522d9
Merge branch 'main' of ssh://github.com/nextauthjs/next-auth
2022-12-19 01:12:47 +01:00
ndom91
553924d902
chore(actions): fix validator path
2022-12-19 01:12:38 +01:00
Balázs Orbán
cba81f0b8c
chore: add snippets
2022-12-18 14:12:56 +01:00
Balázs Orbán
b7171ab790
chore: tweak jsdoc formatting/linting
2022-12-18 14:06:00 +01:00
ndom91
43c8f663c6
Revert "fix: pnpm-lock.yaml"
...
This reverts commit b16b048991 .
2022-12-18 04:06:37 +01:00
ndom91
b16b048991
fix: pnpm-lock.yaml
2022-12-18 04:05:16 +01:00
ndom91
62a5d70f9b
Merge branch 'main' of ssh://github.com/nextauthjs/next-auth
2022-12-18 04:04:46 +01:00
Balázs Orbán
1b671ae83d
docs: format landing page
2022-12-18 02:19:07 +00:00
Andrew Manzanero
cc4b9fc2fc
fix(core): check for oidc account types in callback-handler.ts ( #6108 )
...
* check oidc account types
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-12-18 01:46:33 +00:00
Nico Domino
4935166372
chore(docs): add provider-issue and github-discussions redirects ( #6110 )
2022-12-18 01:44:37 +00:00
Balázs Orbán
695f937dbd
chore: change sync action comment
2022-12-18 01:18:08 +00:00
ndom91
ad9eec3676
chore(docs): add provider-issue and github-discussions redirects
2022-12-18 00:07:41 +01:00
Balázs Orbán
2e924edcdf
chore: stop sync next-auth-example from main branch
2022-12-17 19:40:20 +00:00
Balázs Orbán
c7627778eb
chore: no prettier check yet
2022-12-17 14:33:52 +01:00
Balázs Orbán
8b5644453b
docs: set up API reference generation
2022-12-17 14:26:14 +01:00
Balázs Orbán
84291d3e81
chore: fix formatting and linting
2022-12-16 15:57:55 +01:00
Nico Domino
67e5c236f6
chore(docs): wildcard path matching ( #6092 )
2022-12-16 14:22:51 +01:00
Nico Domino
8972defa4b
chore(vercel): add errors and warnings subdomain redirects ( #6091 )
2022-12-16 14:10:39 +01:00
Aleš Vaupotič
85667dd681
docs(sveltekit): add note about deploying to providers other than vercel ( #6075 )
...
* Directions to deploy outside Vercel
An additional ENV variable is needed when deploying with another service.
* Updated as suggested, AUTH_TRUST_HOST is a boolean
Add AUTH_TRUST_HOST for deploy outside Vercel
2022-12-16 05:06:26 +01:00
Lluis Agusti
d9532745eb
docs: update names to Auth.js ( #6077 )
2022-12-16 05:03:31 +01:00
Robert Soriano
1e6daa8304
chore(examples): use @auth/core in Nuxt playground ( #6081 )
...
* nuxt: rewrite server handler to use @auth/core
* nuxt: fix main tsconfig
* nuxt: remove unused module
* nuxt: update client and server ports
* nuxt: remove iframe style
* nuxt: update readme
2022-12-16 02:47:44 +00:00
meesvandongen
70a3e3f662
chore(docs): Fix nextjs.md code block ( #6037 )
...
chore: fix quotes
2022-12-16 01:00:22 +01:00
Balázs Orbán
875f79d11e
chore(release): bump package version(s) [skip ci]
2022-12-15 11:38:20 +01:00
Shivam Meena
6cfe502ae0
fix(sveltekit): correctly reference SvelteKit as peer dependency ( #6066 )
...
You added svelte-kit@^1.0.0 instead of @sveltejs/kit": "^1.0.0
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-12-15 10:28:55 +00:00
Robert Soriano
91c6b05ed8
fix(sveltekit): reuse types from @auth/core/providers ( #6064 )
...
* feat: use client provider types from @auth/core/providers
* format
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-12-15 10:27:32 +00:00
Nico Domino
45a18930c8
chore: try redirect instead of rewrite ( #6063 )
2022-12-15 00:34:24 +01:00
Arnaud Zheng
6f22a49c7d
chore: removing console log ( #6061 )
2022-12-15 00:24:15 +01:00
Nico Domino
fea30069c9
chore: try redirect instead of rewrite ( #6062 )
2022-12-15 00:14:42 +01:00
Nico Domino
cd01707530
chore: try redirect instead of rewrite ( #6060 )
2022-12-14 23:56:49 +01:00
Lluis Agusti
d9a2df3a3d
chore(docs): fix broken links ( #6053 )
2022-12-14 21:49:15 +01:00
Nico Domino
f4a1ed1eb7
chore(docs): add note regarding AUTH_SECRET to SvelteKit docs ( #6058 )
2022-12-14 21:30:54 +01:00
Nico Domino
a97737cc18
fix: rename social-media-card.png for cache busting ( #6057 )
2022-12-14 20:43:17 +01:00
Nico Domino
b44d1a005e
fix: update docusaurus config url to authjs.dev ( #6056 )
2022-12-14 20:34:41 +01:00
Nico Domino
2c077e1491
chore(docs): add flex-wrap to docs home button wrapper ( #6055 )
2022-12-14 20:28:05 +01:00
Nico Domino
19804661d2
chore(docs): fix social media card copy ( #6054 )
2022-12-14 19:16:16 +01:00
Nico Domino
b7f1e3e7f8
docs: move to Auth.js ( #6024 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Lluis Agusti <hi@llu.lu >
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-12-14 18:33:49 +01:00
Balázs Orbán
7757024d79
chore(examples): update example readmes
2022-12-14 17:13:48 +01:00
Balázs Orbán
3f15dc67e1
chore: update readme
2022-12-14 16:59:08 +01:00
Balázs Orbán
5359694b8f
chore: change package versions to latest
2022-12-14 16:45:46 +01:00
Balázs Orbán
66686fa5fc
chore(example): rename repo
2022-12-14 16:41:14 +01:00
Balázs Orbán
1d6330b719
chore: empty commit
2022-12-14 16:40:38 +01:00
Balázs Orbán
0eb20d1097
chore: sync SvelteKit Auth example
2022-12-14 16:39:21 +01:00
Balázs Orbán
ac30402c6a
chore(examples): move examples
2022-12-14 15:58:45 +01:00
Balázs Orbán
caa6c6ae42
chore(release): bump package version(s) [skip ci]
2022-12-14 15:37:29 +01:00
Nico Domino
a6ac48314e
chore(actions): issue-validator path to 'repro.md' ( #6051 )
2022-12-14 15:36:30 +01:00
Balázs Orbán
f8675bc245
fix(sveltekit): add svelte as peer dependency, fix env vars
2022-12-14 15:32:19 +01:00
Balázs Orbán
3d4842dcc9
fix(core): change imports
2022-12-14 15:31:57 +01:00
Balázs Orbán
7d7d1b2f80
chore(release): bump package version(s) [skip ci]
2022-12-14 13:27:31 +01:00
Balázs Orbán
9a4f3db7b0
chore: format
2022-12-14 13:10:13 +01:00
Balázs Orbán
6aad07a95c
chore: update lock file
2022-12-14 13:10:13 +01:00
Balázs Orbán
cfed5b976f
fix(sveltekit): include module augmentation
2022-12-14 13:10:13 +01:00
Balázs Orbán
d34108091f
fix(core): use preact as JSX runtime
2022-12-14 13:10:13 +01:00
Balázs Orbán
7bf79b89a8
chore(sveltekit): clean up playground
2022-12-14 13:10:13 +01:00
Balázs Orbán
4cd688703a
fix(core): drop "in production" from missing secret error
2022-12-14 13:10:13 +01:00
Balázs Orbán
57b176840e
chore(release): bump package version(s) [skip ci]
2022-12-14 09:49:43 +01:00
Thang Vu
6298d955df
fix(frameworks): run check before building for @auth/sveltekit ( #6044 )
...
* fix(frameworks): run check before building for @auth/sveltekit
* run format
2022-12-14 15:44:08 +07:00
Balázs Orbán
2ad1cb3f8c
chore(release): bump package version(s) [skip ci]
2022-12-14 02:51:15 +01:00
Balázs Orbán
98707282eb
fix(release): tweak package metadata
2022-12-14 02:45:57 +01:00
Balázs Orbán
f4a2430891
fix(release): build packages before publish
2022-12-14 02:45:18 +01:00
Balázs Orbán
575bcb5710
chore: format sveltekit playground
2022-12-13 23:45:32 +01:00
Balázs Orbán
e7af366a3b
chore(release): bump package version(s) [skip ci]
2022-12-13 22:04:43 +01:00
Balázs Orbán
3bdf7f56f0
fix(core): update README
2022-12-13 21:57:30 +01:00
Balázs Orbán
b00a694a4f
fix(frameworks): update @auth/sveltekit README
2022-12-13 21:56:53 +01:00
Balázs Orbán
6ffecfb87d
chore(release): bump package version(s) [skip ci]
2022-12-13 21:53:56 +01:00
Balázs Orbán
22c29361e5
feat(frameworks): Introduce SvelteKit Auth
2022-12-13 21:48:15 +01:00
Balázs Orbán
b157554a5f
chore: move
2022-12-13 21:33:27 +01:00
Balázs Orbán
08fed7eddd
chore: empty commit
2022-12-13 21:21:22 +01:00
Thang Vu
b5e1b19771
feat(frameworks): Introduce SvelteKit Auth ( #6041 )
...
* WIP use `Request` and `Response` for core
* bump Next.js
* rename ts types
* refactor
* simplify
* upgrade Next.js
* implement body reader
* use `Request`/`Response` in `next-auth/next`
* make linter happy
* revert
* fix tests
* remove workaround for middleware return type
* return session in protected api route example
* don't export internal handler
* fall back host to localhost
* refactor `getBody`
* refactor `next-auth/next`
* chore: add `@edge-runtime/jest-environment`
* fix tests, using Node 18 as runtime
* fix test
* remove patch
* upgrade/add dependencies
* type and default import on one line
* don't import all adapters by default in dev
* simplify internal endpoint config
Instead of passing url and params around as a string and an object,
we parse them into a `URL` instance.
* assert if both endpoint and issuer config is missing
* allow internal redirect to be `URL`
* mark clientId as always internally, fix comments
* add web-compatible authorization URL handling
* fix type
* fix neo4j build
* remove new-line
* reduce file changes in the PR
* simplify types
* refactor `crypto` usage
In Node.js, inject `globalThis.crypto` instead of import
* add `next-auth/web`
* refactor
* send header instead of body to indicate redirect response
* fix eslint
* fix tests
* chore: upgrade dep
* fix import
* refactor: more renames
* wip core
* support OIDC
* remove `openid-client`
* temprarily remove duplicate logos
* revert
* move redirect logic to core
* feat: add sveltekit auth
* wip fix css
* revert Logo component
* output ESM
* fix logout
* deprecate OAuth 1, simplify internals, improve defaults
* refactor providers, test facebook
* fix providers
* target es2020
* fix CSS
* fix AuthHandler, add getServerSession
* update lock file
* make logos optional
* sync with `next-auth`
* clean up `next-auth/edge`
* sync
* Sync (#2 )
* fix(core): properly construct url (#5984 )
* chore(release): bump package version(s) [skip ci]
* fix(core): add protocol if missing
* fix(core): throw error if no action can be determined
* test(core): fix test
* chore(release): bump package version(s) [skip ci]
* chore(docs): add new tutorial (#5604 )
Co-authored-by: Nico Domino <yo@ndo.dev >
* fix(core): handle `Request` -> `Response` regressions (#5991 )
* fix(next): don't override `Content-Type` by `unstable_getServerSession`
* fix(core): handle `,` while setting `set-cookie`
* chore(release): bump package version(s) [skip ci]
* fix(sequelize): increase sequelize `id_token` column length (#5929 )
Co-authored-by: Nico Domino <yo@ndo.dev >
* fix(core): correct status code when returning redirects (#6004 )
* fix(core): correctly set status when returning redirect
* update tests
* forward other headers
* update test
* remove default 200 status
* fix(core): host detection/NEXTAUTH_URL (#6007 )
* rename `host` to `origin` internally
* rename `userOptions` to `authOptions` internally
* use object for `headers` internally
* default `method` to GET
* simplify `unstable_getServerSession`
* allow optional headers
* revert middleware
* wip getURL
* revert host detection
* use old `detectHost`
* fix/add some tests wip
* move more to core, refactor getURL
* better type auth actions
* fix custom path support (w/ api/auth)
* add `getURL` tests
* fix email tests
* fix assert tests
* custom base without api/auth, with trailing slash
* remove parseUrl from assert.ts
* return 400 when wrong url
* fix tests
* refactor
* fix protocol in dev
* fix tests
* fix custom url handling
* add todo comments
* chore(release): bump package version(s) [skip ci]
* update lock file
* fix(next): correctly bundle next-auth/middleware
fixes #6025
* fix(core): preserve incoming set cookies (#6029 )
* fix(core): preserve `set-cookie` by the user
* add test
* improve req/res mocking
* refactor
* fix comment typo
* chore(release): bump package version(s) [skip ci]
* make logos optional
* sync with `next-auth`
* clean up `next-auth/edge`
* sync
Co-authored-by: Balázs Orbán <balazsorban44@users.noreply.github.com >
Co-authored-by: Thomas Desmond <24610108+thomas-desmond@users.noreply.github.com >
Co-authored-by: Nico Domino <yo@ndo.dev >
Co-authored-by: Cyril Perraud <perraud.cyril@gmail.com >
* merge
* clean up sveltekit auth handler
* upgrade playground to latest
* upgrade sveltekit auth to latest
* Some more refactoring
* feat: extract type to core and reuse in sveltekit
* remove uuid
* make secret required in dev
* remove todo comments
* pass through OAuth client options
* generate declaration map
* default env secret to AUTH_SECRET
* temporary Headers fix
* move pages to lib
* move errors to lib
* move pages/index to lib
* move routes to lib
* move init to lib
* move styles to lib
* move types to lib
* move utils to lib
* fix imports
* update ignore/clean patterns
* fix imports
* update styles ts
* update gitignore
* update exports field
* revert `next-auth`
* remove extra tsconfig files
* remove `private` from package.json
* revert
* feat sveltekit
* commit
* remove unused file, expose type
* remove nextauth_url, memoize locals.getSession
* move to dependency
* fix
* format
* fix post build
* simplify
* fix lock file
* add packages/frameworks
* update package.json
* update gitignore
* Delete .gitignore
* Update types.ts
* Update tsconfig.dev.json
* skip test
* format
* skip format/lint
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Balázs Orbán <balazsorban44@users.noreply.github.com >
Co-authored-by: Thomas Desmond <24610108+thomas-desmond@users.noreply.github.com >
Co-authored-by: Nico Domino <yo@ndo.dev >
Co-authored-by: Cyril Perraud <perraud.cyril@gmail.com >
2022-12-13 20:10:53 +00:00
Balázs Orbán
6680860293
chore(release): bump versions [skip release]
2022-12-13 19:35:05 +01:00
Balázs Orbán
c7d93c61e0
chore: remove
2022-12-13 19:28:54 +01:00
Balázs Orbán
a7b6a29773
feat(web): expose Web API compatible version of next-auth ( #5536 )
...
* WIP use `Request` and `Response` for core
* bump Next.js
* rename ts types
* refactor
* simplify
* upgrade Next.js
* implement body reader
* use `Request`/`Response` in `next-auth/next`
* make linter happy
* revert
* fix tests
* remove workaround for middleware return type
* return session in protected api route example
* don't export internal handler
* fall back host to localhost
* refactor `getBody`
* refactor `next-auth/next`
* chore: add `@edge-runtime/jest-environment`
* fix tests, using Node 18 as runtime
* fix test
* remove patch
* upgrade/add dependencies
* type and default import on one line
* don't import all adapters by default in dev
* simplify internal endpoint config
Instead of passing url and params around as a string and an object,
we parse them into a `URL` instance.
* assert if both endpoint and issuer config is missing
* allow internal redirect to be `URL`
* mark clientId as always internally, fix comments
* add web-compatible authorization URL handling
* fix type
* fix neo4j build
* remove new-line
* reduce file changes in the PR
* simplify types
* refactor `crypto` usage
In Node.js, inject `globalThis.crypto` instead of import
* add `next-auth/web`
* refactor
* send header instead of body to indicate redirect response
* fix eslint
* fix tests
* chore: upgrade dep
* fix import
* refactor: more renames
* wip core
* support OIDC
* remove `openid-client`
* temprarily remove duplicate logos
* revert
* move redirect logic to core
* wip fix css
* revert Logo component
* output ESM
* fix logout
* deprecate OAuth 1, simplify internals, improve defaults
* refactor providers, test facebook
* fix providers
* target es2020
* fix CSS
* update lock file
* make logos optional
* sync with `next-auth`
* clean up `next-auth/edge`
* sync
* remove uuid
* make secret required in dev
* remove todo comments
* pass through OAuth client options
* generate declaration map
* default env secret to AUTH_SECRET
* temporary Headers fix
* move pages to lib
* move errors to lib
* move pages/index to lib
* move routes to lib
* move init to lib
* move styles to lib
* move types to lib
* move utils to lib
* fix imports
* update ignore/clean patterns
* fix imports
* update styles ts
* update gitignore
* update exports field
* revert `next-auth`
* remove extra tsconfig files
* remove `private` from package.json
* remove unused file, expose type
* move gitignore, reduce exposed types
* add back tsconfig files
* remove leftover
* revert gitignore
* remove test script
2022-12-13 18:24:30 +00:00
Balázs Orbán
092ab9c128
chore: update release script
2022-12-13 18:01:45 +01:00
Balázs Orbán
36f44a869a
chore: move files to nextuahtjs/.github
2022-12-13 17:40:17 +01:00
Balázs Orbán
2913fbac3b
chore(release): bump package version(s) [skip ci]
2022-12-12 14:53:01 +01:00
Balázs Orbán
2875b49f11
fix(core): preserve incoming set cookies ( #6029 )
...
* fix(core): preserve `set-cookie` by the user
* add test
* improve req/res mocking
* refactor
* fix comment typo
2022-12-12 13:47:34 +00:00
Balázs Orbán
5259d247a2
fix(next): correctly bundle next-auth/middleware
...
fixes #6025
2022-12-12 11:59:37 +01:00
Balázs Orbán
d1d93fd75e
chore(release): bump package version(s) [skip ci]
2022-12-11 15:52:57 +01:00
Balázs Orbán
62f672ae30
fix(core): host detection/NEXTAUTH_URL ( #6007 )
...
* rename `host` to `origin` internally
* rename `userOptions` to `authOptions` internally
* use object for `headers` internally
* default `method` to GET
* simplify `unstable_getServerSession`
* allow optional headers
* revert middleware
* wip getURL
* revert host detection
* use old `detectHost`
* fix/add some tests wip
* move more to core, refactor getURL
* better type auth actions
* fix custom path support (w/ api/auth)
* add `getURL` tests
* fix email tests
* fix assert tests
* custom base without api/auth, with trailing slash
* remove parseUrl from assert.ts
* return 400 when wrong url
* fix tests
* refactor
* fix protocol in dev
* fix tests
* fix custom url handling
* add todo comments
2022-12-11 14:48:28 +00:00
Balázs Orbán
2c669b32fc
fix(core): correct status code when returning redirects ( #6004 )
...
* fix(core): correctly set status when returning redirect
* update tests
* forward other headers
* update test
* remove default 200 status
2022-12-11 12:55:16 +00:00
Cyril Perraud
2dea8919e5
fix(sequelize): increase sequelize id_token column length ( #5929 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-12-10 12:34:45 +01:00
Balázs Orbán
6fdb0da6eb
chore(release): bump package version(s) [skip ci]
2022-12-09 00:34:31 +01:00
Balázs Orbán
5c4a9a697d
fix(core): handle Request -> Response regressions ( #5991 )
...
* fix(next): don't override `Content-Type` by `unstable_getServerSession`
* fix(core): handle `,` while setting `set-cookie`
2022-12-08 23:29:25 +00:00
Thomas Desmond
eddd8fd7f9
chore(docs): add new tutorial ( #5604 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-12-08 18:24:58 +01:00
Balázs Orbán
b74bfc68e8
chore(release): bump package version(s) [skip ci]
2022-12-08 05:16:10 +01:00
Balázs Orbán
0a140cdf87
test(core): fix test
2022-12-08 05:11:37 +01:00
Balázs Orbán
157269e0fb
fix(core): throw error if no action can be determined
2022-12-08 05:10:26 +01:00
Balázs Orbán
221bc8e99c
fix(core): add protocol if missing
2022-12-08 04:54:42 +01:00
Balázs Orbán
f856363ac8
chore(release): bump package version(s) [skip ci]
2022-12-08 04:38:03 +01:00
Balázs Orbán
f3291025e6
fix(core): properly construct url ( #5984 )
2022-12-08 04:33:20 +01:00
Balázs Orbán
bc0912cc71
chore(release): bump package version(s) [skip ci]
2022-12-08 00:08:09 +01:00
Branden Cash
b19b2bcb3f
fix(core): don't mutate authOptions in unstable_getServerSession ( #5973 )
2022-12-07 22:04:53 +01:00
Balázs Orbán
63c2a15717
Update nextjs.md
2022-12-07 14:39:57 +01:00
Balázs Orbán
9209b48dbe
chore: add issue validator
2022-12-06 12:21:42 +01:00
Balázs Orbán
0fcc6a0d04
refactor: more renames
2022-12-05 13:38:29 +01:00
Balázs Orbán
cbf8c7a59f
refactor: rename
2022-12-03 15:51:38 +01:00
Balázs Orbán
0e6c51adec
refactor: rename
2022-12-03 15:41:39 +01:00
Balázs Orbán
c4352a7d56
chore(dev): upgrade dev app and deps
...
Conflicts:
apps/dev/pages/api/auth/[...nextauth].ts
2022-12-03 15:33:49 +01:00
Balázs Orbán
7e91d7df54
refactor(core): use standard Request and Response ( #4769 )
...
* WIP use `Request` and `Response` for core
* bump Next.js
* rename ts types
* refactor
* simplify
* upgrade Next.js
* implement body reader
* use `Request`/`Response` in `next-auth/next`
* make linter happy
* revert
* fix tests
* remove workaround for middleware return type
* return session in protected api route example
* don't export internal handler
* fall back host to localhost
* refactor `getBody`
* refactor `next-auth/next`
* chore: add `@edge-runtime/jest-environment`
* fix tests, using Node 18 as runtime
* fix test
* remove patch
* fix neo4j build
* remove new-line
* reduce file changes in the PR
* fix tests
* fix tests
* refactor
* refactor
* add host tests
* refactor tests
* fix body reading
* fix tests
* use 302
* fix test
* fix again
* fix tests
* handle when body is `Buffer`
* move comment
2022-12-03 13:39:08 +00:00
Balázs Orbán
c1424136db
chore(dev): don't load all adapters in dev app
2022-12-03 13:45:06 +01:00
Balázs Orbán
f2a07932b9
chore(release): bump package version(s) [skip ci]
2022-12-03 12:38:32 +01:00
Balázs Orbán
25c7ce1d2b
chore: revert sync-example action
2022-12-03 12:31:22 +01:00
Vedant
227a233bd8
chore(adapters): update firebase sdk version in firebase adapter ( #5902 )
...
* Update firebase SDK version
* Update pnpm-lock.yaml
* add `--debug`
* move flag
* add `FIREBASE_TOKEN`
* chore: upgrade `firebase-tools`
* revert peer dep change
* remove --debug flag
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-12-03 11:29:09 +00:00
Vedant
cf9f133aa3
fix(adapters): tsconfig for firebase and pouchdb ( #5945 )
...
* Update tsconfig.json
* Update tsconfig.json
2022-12-03 09:48:55 +01:00
Arnaud Zheng
2301c1be44
chore(types): fix typo in comment ( #5815 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-12-02 16:39:28 +01:00
jintak0401
6e408e24bf
fix(provider): modify response.name to response.nickname (Naver) ( #5915 )
...
fix(provider): modify response.name to response.nickname (Naver Provider)
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-12-01 08:12:16 +07:00
Jason Brady
f277989c69
feat(core): make pkce and state maxAge configurable on the cookies ( #4719 )
...
* feat(cookies): make pkce and state maxAge configurable on the cookies (#4660 )
* added tests for pkce and state handlers
2022-12-01 08:02:42 +07:00
Nico Domino
6146e93288
chore(docs): add new provider styling notes to CONTRIBUTING.md ( #5900 )
2022-11-30 15:44:50 +01:00
Nico Domino
1ff565da6c
chore(docs): update oauth.md styling docs ( #5899 )
...
* chore(docs): update oauth.md styling docs
* chore: add note about styling object
* chore: typo
* chore: filename typos
2022-11-30 15:43:55 +01:00
Nico Domino
41f75cf870
chore(actions): version bump all deps ( #5903 )
2022-11-28 11:10:15 +00:00
Justin W Hall
dd591ed8d0
chore(docs): fix path Strava provider file ( #5853 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-11-27 14:04:17 +01:00
koolskateguy89
297bc2317f
chore(docs): fix spelling in docs ( #5867 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-11-27 13:44:35 +01:00
Tormod Flesjø
b170138e70
chore: update mongodb.md with typescript filetypes ( #5889 )
2022-11-27 13:11:54 +01:00
Balázs Orbán
a307079e0f
fix(ts): improve unstable_getServerSession return type ( #5792 )
...
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-11-24 15:13:05 +01:00
Jacob Penny
d52b7a6b7d
chore(adapters): fix typo on Firebase Adapter ( #5813 )
2022-11-24 14:31:43 +01:00
Jake Mulley
30b69a07eb
chore: fix import statement for next-auth/providers/email ( #5860 )
2022-11-21 12:07:09 +01:00
Balázs Orbán
0d1757814f
fix(next): improve dev environment variable handling ( #5763 )
...
* fix(next): HIDE `NEXTAUTH_URL` warning locally
* refactor: move out `process.env` from core
* fix tests
* simplify
* swap
2022-11-20 09:08:10 +00:00
Thang Vu
068f9b50b8
chore(release): bump package version(s) [skip ci]
2022-11-19 21:29:28 +07:00
Martin Sonnberger
dac490b7a1
feat(adapters): Add Supabase adapter ( #5050 )
...
* Add Supabase adapter
* Add Supabase adapter
* Add schema setup to docs
* supabase config changes
* chore: update to supabase-js v2.
* chore: migrate to next_auth schema.
* feat: add supabase examples.
* chore: update docs.
* chore: add telemetry.
* fix: resolve issues after merge.
* chore: extend session type.
* typo
* chore: remove unnecessary grants.
* fix: schema constraints.
Co-authored-by: thorwebdev <thor@supabase.io >
Co-authored-by: Thor 雷神 Schaeff <5748289+thorwebdev@users.noreply.github.com >
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-11-19 20:56:20 +07:00
Gregor Adams
c0f51669e2
docs: upadte mongodb guide ( #5809 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-11-16 16:38:55 +01:00
Nico Domino
cbf8ce3510
chore: fix signin btns svg URLs to 'main' ( #5826 )
2022-11-15 22:07:30 +01:00
Nico Domino
1c19cc71df
chore: add tour de source link to CONTRIBUTING.md ( #5820 )
2022-11-15 16:47:15 +00:00
Nico Domino
9d962a0056
feat: add signin button styles ( #5802 )
...
* feat: add signin button styles
* fix: remove unnecessary spans
chore: rm comments
* Update packages/next-auth/src/core/pages/signin.tsx
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* feat: add provider svgs to repo
* fix: adjust SVG sizes
* fix: adjust provider btn to logo links
* feat: apple provider btn style
* fix: add apple-dark svg
* feat: atlassian logo and style
* feat: auth0 logo and style
* feat: azure logo and style
* fix: azure logo size
* feat: battlenet logo and style
* feat: box logo and style
* feat: cognito logo and style
* feat: discord logo and style
* feat: facebook logo and style
* feat: foursquare logo and style
* fix: foursquare logo size
* feat: freshbooks logo and style
* feat: gitlab logo and style
* fix: gitlab logo whitespace
* feat: hubspot logo and style
* feat: instagram logo and style
* feat: keycloak logo and style
* feat: keycloak logo resize
* feat: linkedin logo and style
* feat: mailchimp logo and style
* feat: okta logo and style
* feat: update okta logos
* feat: patreon logo and style
* fix: okta logo viewbox
* feat: slack logo and style
* feat: spotify logo and style
* feat: todoist logo and style
* fix: spotify logo size
* feat: trakt logo and style
* feat: twitch logo and style
* feat: twitter logo and style
* feat: vk logo and style
* feat: wikimedia logo and style
* feat: workos logo and style
* fix: wikimedia-dark logo + twitter (legacy)
* fix: button:active styling
* fix: ignore eslint inline css custom properties warning
* fix: improve darkmode default btn stylign
* fix: swap github btn colors
* fix: swap line btn theme colors
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-11-15 16:46:42 +00:00
Håkon Collett Bjørgan
8387c78e3f
fix(core): update JSDoc for jwt in NextAuthOptions ( #5804 )
2022-11-13 07:55:35 +01:00
Balázs Orbán
58e30a6af6
chore(release): bump package version(s) [skip ci]
2022-11-07 21:33:48 +01:00
Balázs Orbán
b7ff987baf
docs: update unstable_getServerSession in RSC
2022-11-07 21:20:06 +01:00
Balázs Orbán
782812a52b
fix(next): correctly parse headers with RSC ( #5753 )
...
* fix(next): correctly parse headers with RSC
* chore(dev): simplify/fix dev app
* make authOptions optional for RSC case
2022-11-07 20:19:14 +00:00
Balázs Orbán
32f2a0cea3
chore(release): bump package version(s) [skip ci]
2022-11-07 03:40:46 +01:00
Balázs Orbán
3343ef18b2
fix(next): conditional RSC support ( #5745 )
...
* fix(next): conditional RSC
* use Node 16 for version determination
* convert cookies
* use map instead of reduce
2022-11-07 02:33:47 +00:00
Robert Soriano
6280fe9e10
docs: add Nuxt 3 playground ( #5746 )
2022-11-06 20:33:02 +01:00
Balázs Orbán
52a2bf3e28
chore(release): bump package version(s) [skip ci]
2022-11-06 06:24:30 +01:00
Balázs Orbán
180c6252d9
fix(next): build RSC+unstable_getServerSession
2022-11-06 06:09:27 +01:00
Balázs Orbán
362e981e6d
chore(release): bump package version(s) [skip ci]
2022-11-06 06:07:47 +01:00
Balázs Orbán
5198eb19f7
fix(next): build RSC+unstable_getServerSession
2022-11-06 05:53:38 +01:00
Balázs Orbán
0210cfccf3
chore(release): bump package version(s) [skip ci]
2022-11-06 05:12:31 +01:00
Balázs Orbán
e90925bea0
feat(next): allow unstable_getServerSession in Server Components ( #5741 )
...
* feat(next): support Server Components with `unstable_getServerSession`
* chore: remove `.entries`
* docs(next): add documentation for RSC
* update beta docs
* chore(dev): add app dir
* fix text
* only show second warning if using with RSC
* only delete expires for RSC case
2022-11-06 04:03:26 +00:00
Leif Arriens
27a0b70d87
docs: fix import path at providers/oauth ( #5725 ) ( #5736 )
2022-11-06 00:54:01 +01:00
Balázs Orbán
c676e93d8a
chore(release): bump package version(s) [skip ci]
2022-11-05 23:43:00 +01:00
Matthew Francis Brunetti
f498e9cd0a
fix(react): allow imports from "next-auth/react" in RSC ( #5718 )
2022-11-05 23:09:51 +01:00
Balázs Orbán
2f3396d376
chore(release): bump package version(s) [skip ci]
2022-11-04 03:48:42 +01:00
Balázs Orbán
e62f879ebd
chore(adapters): run Xata tests
2022-11-04 03:38:24 +01:00
Balázs Orbán
f67959eb04
chore: update example to Next.js 13
2022-11-04 03:33:42 +01:00
Henrik Wenz
060953dacf
fix: support Next.js 13 ( #5710 )
...
* Migrate dev app to Next.js Version 13
* Update core types
* Fix middleware
https://github.com/nextauthjs/next-auth/issues/5649
* Use new ResponseCookie API
https://github.com/vercel/next.js/pull/41526
2022-11-04 03:32:48 +01:00
Nico Miebach
30ad639d16
fix: Add support for Node 18 ( #5656 )
...
* add support for Node 18
* update node engines in packages/next-auth
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-10-30 23:54:16 -07:00
Thang Vu
777da4302d
fix: add next 13 as peer dependencies ( #5657 )
...
fix: add next 13 as peer dependencies
2022-10-30 23:46:24 -07:00
Tejas Kumar
733fd5f234
feat(adapters): add Xata adapter ( #4911 )
...
* Add Xata adapter
* Adjust slogan
* Namespace tables for better DX
* Fix types
* Adjust docs
* Import type only
* Add scripts
* Fix types
* Update packages/adapter-xata/package.json
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update packages/adapter-xata/package.json
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update packages/adapter-xata/src/index.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update packages/adapter-xata/src/index.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update packages/adapter-xata/src/index.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/adapters/xata.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update docs/docs/adapters/xata.md
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Address more comments
* Clarify codegen
* Fix by adding src
* Fix types
* More cleanup
* Fix import
* Clean up model
* Adjust docs
* Update docs
* Housekeeping
* Add tests
* Update lockfile
* Update packages/adapter-xata/tsconfig.json
Co-authored-by: Thang Vu <hi@thvu.dev >
* Update packages/adapter-xata/src/index.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-10-27 21:39:49 +07:00
Thang Vu
a787efc6be
docs: improve documentation for adding new provider ( #5633 )
2022-10-25 10:05:52 +07:00
Bruno Crosier
261968b9bb
docs: improve credentials docs ( #5627 )
2022-10-24 23:33:46 +07:00
Thang Vu
4dbbe5b2d9
chore(release): bump package version(s) [skip ci]
2022-10-23 22:17:19 +07:00
Balázs Orbán
d9df582fa8
feat(client): add refetchWhenOffline option ( #4940 )
...
* feat(client): add `refetchWhenOffline` option
* docs(client): document `refetchWhenOffline` option
* add TODO comment for next major
* feat: improve refetch hook logic
* fix: add todo back
* chore: small refactoring
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-10-23 22:09:30 +07:00
Matsuoka
af840b2106
feat(providers): Add Todoist provider ( #5253 )
...
* feat: Add Todoist provider
* fix: use openid-client
* chore: add Todoist provider to issue template
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-10-23 17:16:06 +07:00
jcdogo
ba89907d5a
feat: Add allowDangerousEmailAccountLinking option for OAuth providers ( #5513 )
...
* Add opt-in for dangerous linking
* Add documentation for allowDangerousEmailAccountLinking option.
* Add link to FAQ.
* Fix nullish coalescing operator linting error.
2022-10-23 17:08:25 +07:00
Steven Tey
08eaeba79f
docs: Fixed typo ( #5609 )
2022-10-21 10:07:13 +01:00
Usman Sabuwala (Max Programming)
c31eabfcc6
docs: Update the nodemailer well known page URL ( #5573 )
2022-10-19 22:28:40 +02:00
Balázs Orbán
4423673424
docs: update patreon.md
2022-10-18 21:32:51 +01:00
X
281d0948b9
docs: Typo error on Example ( #5590 )
...
Removed unwanted ")" from Example
2022-10-18 21:32:33 +01:00
Lluis Agusti
5246183c55
chore: docs updates ( #5581 )
...
* chore: fix version label
* upgrade docusaurus
* fix
* fix
* fix links, NextAuth -> NextAuth.js
* NextJS -> Next.js
* fix guides
* add docusaurus type
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-15 16:39:33 +01:00
Lluis Agusti
cb56cd44ca
refactor(docs): re-structure ( #4498 )
...
* docs: beta initial commit
* docs(oauth): finish initial tutorial
* docs(oauth-tutorial): finish guide
* docs(docusaurus): just log broken links
* docs: re-organising beta
* docs(beta): sort documents for sorting
* docs: more re-structure
* docs: more re-structure (2)
* fix: more WIP
* fix: more WIP
* chore: more updates
* chore: wip
* chore: wip
* fix lock file
* docs(getting-started): credentials
* chore: remove json-server file
* chore: cleanup
* remove mongodb from dev app
* chore: cleanup
* revert
* chore: cleanup
* chore: more cleanup changes
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-15 15:45:33 +01:00
Mischa Spiegelmock
6758e1c6d1
refactor(core): allow trusting the forwarded host header ( #5561 )
...
* Non vercel-specific way to forward host header
* Update packages/next-auth/src/utils/detect-host.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-15 14:17:20 +02:00
Thang Vu
462cca1087
chore(release): bump package version(s) [skip ci]
2022-10-14 08:52:04 +07:00
Thang Vu
ab48fcfe5b
chore: remove codeql run on main push
2022-10-14 08:37:59 +07:00
Thang Vu
fe7aaeded8
fix(ts): TS Module Augmentation ( #5556 )
...
* fix: TS Module Augmentation
* match type to AdapterUser
* refactor authorize callback
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-13 09:39:12 +07:00
Anthony Shew
c53c09ea5c
docs: options.md grammar fixes ( #5562 )
...
Update options.md
Just some grammar!
2022-10-12 20:07:53 +01:00
Matteo Giardino
4bcba45294
docs(client): typo ( #5545 )
2022-10-11 01:44:15 +01:00
David Walsh
eb5a9bad9d
chore(dev): update SvelteKit playground to 1.0.0-next.511 ( #5531 )
...
* Update playground-sveltekit to sveltekit rc 511
* Remove prettier config and format
* Fix adapter comment
2022-10-10 18:20:51 +02:00
Balázs Orbán
9a6d95c17c
chore: fix TS lint
2022-10-10 02:11:46 +02:00
Balázs Orbán
5b2fc7b570
chore: fix neo4j build
2022-10-10 02:04:09 +02:00
Balázs Orbán
6f459225fa
Merge branch 'main' of github.com:nextauthjs/next-auth
2022-10-10 00:30:25 +02:00
Balázs Orbán
f38ee19a8a
chore(dev): improve DX
2022-10-10 00:30:22 +02:00
Ranjan Purbey
38a03ed7d8
feat(providers): Add Pinterest Provider ( #5485 )
...
* feat(providers): Add Pinterest Provider
* Apply suggestions from code review
* Update pinterest.ts
* Update pinterest.ts
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-10-09 23:18:45 +01:00
Chris Abernethy
e1eb684cc6
fix(providers): change EVE Online to OAuth2 ( #5459 )
2022-10-10 00:16:17 +02:00
Thang Vu
777b7b2f23
chore(release): bump package version(s) [skip ci]
2022-10-09 22:52:53 +07:00
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
Philipp
490d59dd17
fix(middleware): improve handling of custom Next.js basePath ( #5109 )
...
* fix(middleware): improve handling of custom nextjs basePath
* fix(middleware): improve extraction of nextjs base path from req.nextUrl
* adapt to req.nextUrl.basePath
* Fix indent
* Add middleware test for custom-base and simplified code a little bit
* Fix indent
* Add another test
* Rename basePath and nextJsBasePath
* Fix lint error
2022-10-09 11:31:28 +07:00
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]
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]
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]
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]
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]
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
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
Melanie Seltzer
a82cbf5ddf
fix: return null in unstable_getServerSession if there's an error ( #5218 )
...
* fix: return null in unstable_getServerSession if there's an error
* Remove status check and instead check body is not a string
* Combine similar tests
2022-08-31 09:19:14 +07:00
josef
24db833685
docs(svelte): upgrade SvelteKit playground to use latest SvelteKit routes ( #5229 )
...
* feat: migrate routes
* feat: ugrade to latest SvelteKit (443)
2022-08-28 13:32:55 +01:00
Adalberto Prado
c57a810042
docs(nextjs): change typo from js to ts ( #5217 )
2022-08-26 23:47:09 +01:00
Brian Muenzenmeyer
d980fa986b
chore(types): fix typo in comment ( #5207 )
2022-08-23 18:58:50 +02: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
Moritz Kneilmann
a03657e615
fix(providers): Add appid param to Azure AD wellKnown URL ( #5138 )
...
This fixes : #5137
Relevent documentation:
> If the application has custom signing keys as a result of using the claims-mapping feature, append an appid query parameter that contains the application ID to get a jwks_uri that points to the signing key information of the application, which should be used for validation.
https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens#validating-the-signature
2022-08-12 14:26:21 +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
dependabot[bot]
385037ab33
chore(deps): bump next-auth from 4.9.0 to 4.10.3 in /apps/playground-sveltekit ( #5071 )
...
chore(deps): bump next-auth in /apps/playground-sveltekit
Bumps [next-auth](https://github.com/nextauthjs/next-auth ) from 4.9.0 to 4.10.3.
- [Release notes](https://github.com/nextauthjs/next-auth/releases )
- [Changelog](https://github.com/nextauthjs/next-auth/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@v4.9.0...next-auth@v4.10.3 )
---
updated-dependencies:
- dependency-name: next-auth
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-03 00:32:42 +02:00
Balázs Orbán
26a03da621
chore(release): bump version [skip ci]
2022-08-01 13:55:08 +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
Gavin Fogel
a21db8950f
fix(ts): fix jsdoc link to documentation ( #5039 )
2022-07-28 06:54:01 +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
Thang Vu
89829d8a88
chore: fix unstable_getServerSession usages in dev app ( #5017 )
...
chore: fix unstable_getServerSession usages in dev app
2022-07-25 23:08:59 +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
6590993fdc
chore(release): bump package version(s) [skip ci]
2022-07-21 16:35: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
Balázs Orbán
e3bcdf83f1
chore: update lock file
2022-07-20 03:18:02 +02:00
Balázs Orbán
4084297334
chore(release): extract release script to its own package
2022-07-20 03:08:03 +02:00
Balázs Orbán
c9827960b1
chore(release): read packages dynamically
2022-07-20 00:36:49 +02:00
Balázs Orbán
946a825865
chore: fix adapters PR auto-labeler
2022-07-19 23:55:03 +02:00
Balázs Orbán
c57d8c997e
fix(adapters): set correct peer dependency version of next-auth ( #4950 )
...
* fix(adapters): set correct peer dependency version of `next-auth`
* fix fauna peer dependency
2022-07-19 23:46:45 +02:00
Balázs Orbán
e2b92bf04f
chore: add newlines to PR comment
2022-07-19 17:45:55 +02:00
Balázs Orbán
8bff050e4e
chore(release): bump version [skip ci]
2022-07-19 17:30:40 +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
b7065a602f
chore: correct Middleware logic in Next.js example
2022-07-19 17:16:51 +02:00
Balázs Orbán
61b92ec1b6
chore: revert type assertion
2022-07-19 16:57:16 +02:00
Balázs Orbán
282f7ab340
fix(ts): fix Middleware internal type
2022-07-19 16:46:13 +02:00
Balázs Orbán
4f56e414b0
chore: simplify dev app
2022-07-19 16:42:21 +02:00
Yoann Fleury
2725d07eb7
fix(providers): migrate GitLab provider to TS ( #4929 )
2022-07-17 04:47:15 +02:00
Balázs Orbán
5a8b029523
docs: clarify getToken + secret in example
...
ref #4954
2022-07-17 04:44:11 +02:00
Balázs Orbán
f62a985848
docs: clarify getToken and secret
...
Ref: #4954
2022-07-17 04:39:47 +02:00
Balázs Orbán
edd6fb5989
Merge branch 'main' of github.com:nextauthjs/next-auth
2022-07-17 04:29:49 +02:00
Balázs Orbán
fb60554a62
chore(ts): explicitly set next path in next-auth
2022-07-17 04:29:44 +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
Balázs Orbán
4ff836a8cf
test(providers): add fetch polyfill to redis test runs
2022-07-16 17:39:32 +02:00
Balázs Orbán
042955eaaa
fix(providers): allow issuer in Azure AD B2C
2022-07-16 14:20:31 +02:00
Balázs Orbán
82e107c0e7
chore: improve dev app DX
2022-07-16 14:19:33 +02:00
dependabot[bot]
f7050347e8
chore(deps-dev): bump svelte from 3.46.4 to 3.49.0 in /apps/playground-sveltekit ( #4947 )
...
chore(deps-dev): bump svelte in /apps/playground-sveltekit
Bumps [svelte](https://github.com/sveltejs/svelte ) from 3.46.4 to 3.49.0.
- [Release notes](https://github.com/sveltejs/svelte/releases )
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sveltejs/svelte/compare/v3.46.4...v3.49.0 )
---
updated-dependencies:
- dependency-name: svelte
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-15 23:17:21 +02:00
Balázs Orbán
c56abbd745
chore: update CODEOWNERS ( #4941 )
...
* chore: update codeowners
* reorganize
2022-07-15 12:35:54 +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
Balázs Orbán
bb664a27da
fix(providers): typo in GitHub provider scope ( #4938 )
2022-07-15 04:38:42 +02:00
Balázs Orbán
a14fbea0b5
chore: add TODO comment for next major
2022-07-15 02:41:09 +02:00
Balázs Orbán
4705632c6b
chore: add TODO comment for next major version
2022-07-15 02:38:59 +02:00
Balázs Orbán
2296471f02
chore: add pnpm to experimental release comment
2022-07-15 02:20:06 +02:00
S. Suzuki
8853000fd5
fix(ts): handleMiddleware return type can be NextMiddlewareResult ( #4818 )
...
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-07-14 00:20:19 +02:00
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
Balázs Orbán
374dc30f9f
chore: bump pnpm version requirement
2022-07-13 14:01:25 +02:00
Balázs Orbán
d9534d807d
chore: tweak release script
2022-07-13 13:59:45 +02:00
Balázs Orbán
f4c7401a5d
chore: fix release script text
2022-07-13 13:09:08 +02:00
Balázs Orbán
2baa0c30c1
chore: bump turbo
2022-07-13 13:08:58 +02:00
Sagar Gajare
839b9108ea
docs: provider link fixed ( #4913 )
2022-07-13 01:39:13 +02:00
Juho Tapio
0bf955a63d
docs: a few typos in CONTRIBUTING.md ( #4910 )
...
* docs: fixed a typo
* docs: update link to scripts index
* docks: more typos
* docs: added a comma
2022-07-12 17:58:54 +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
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
Ryan Barr
c2a9ab3023
fix(providers): convert Discord Provider to TypeScript ( #4170 )
...
* chore(providers): Add typings for Discord Provider
* Update DiscordProfile interface to extend Record.
2022-07-12 02:43:56 +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
Balázs Orbán
fa3ea37ebc
chore: comment out adapter in dev app
2022-07-11 18:20:53 +02:00
Yoann Fleury
6a364f0353
docs: update CONTRIBUTING for pnpm instead of yarn ( #4888 )
...
* docs: update CONTRIBUTING for pnpm instead of yarn
* dev:app -> dev
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
2022-07-11 10:38:30 +07: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
Nico Domino
9efafcd36c
chore: fix dev app URL parse error ( #4887 )
2022-07-10 14:30:10 +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
637dda9966
chore: tweak release script
2022-07-08 19:55:08 +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
89e25568b1
chore: accept --dry-run flag in release script
2022-07-08 19:31:04 +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
dependabot[bot]
5081d25f5c
chore(deps): bump next-auth in /apps/playground-sveltekit ( #4859 )
...
Bumps [next-auth](https://github.com/nextauthjs/next-auth ) from 4.5.0 to 4.9.0.
- [Release notes](https://github.com/nextauthjs/next-auth/releases )
- [Changelog](https://github.com/nextauthjs/next-auth/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@v4.5.0...next-auth@v4.9.0 )
---
updated-dependencies:
- dependency-name: next-auth
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-07 00:34:27 +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
2adfadefdc
chore: bump version
2022-07-06 11:51:37 +02:00
Balázs Orbán
32fa01f939
chore: re-add GITHUB_TOKEN
2022-07-06 11:44: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
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
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
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
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
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
4bee970775
chore: bump version
2022-06-28 18:28:53 +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
Balázs Orbán
a911b4a40b
chore(deps): upgrade dependencies
2022-06-28 12:22:11 +02:00
Balázs Orbán
cb0f3e1ae2
chore: rename GITHUB_TOKEN to RELEASE_TOKEN
2022-06-28 12:21:58 +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
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
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
Balázs Orbán
8ce728197f
chore: update to use release token
2022-06-23 12:10:05 +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
Matthew Francis Brunetti
172813f987
docs(adapters): fix references to deprecated adapters repo ( #4737 )
2022-06-22 18:12:07 +02:00
dependabot[bot]
cc934fceec
chore(deps): bump next-auth in /apps/playground-sveltekit ( #4746 )
...
Bumps [next-auth](https://github.com/nextauthjs/next-auth ) from 4.3.3 to 4.5.0.
- [Release notes](https://github.com/nextauthjs/next-auth/releases )
- [Changelog](https://github.com/nextauthjs/next-auth/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@v4.3.3...next-auth@v4.5.0 )
---
updated-dependencies:
- dependency-name: next-auth
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 18:07:17 +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
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
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
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
Danny Luedke
408b6b175f
chore(sveltekit): cookie.parse type error for null ( #4580 )
2022-06-14 00:32:53 +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
76560aed5a
chore: no git checks on publish
2022-06-10 14:39:43 +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
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
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
Thomas Knickman
9f6949816c
chore(release): increase checkout depth ( #4654 )
...
Fetch two commits in CI so HEAD^1 is able to function correctly to determine diff between last commit and now.
2022-05-31 18:37:22 +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
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
dependabot[bot]
e203801f30
chore(deps): bump next-auth in /apps/playground-sveltekit ( #4615 )
...
Bumps [next-auth](https://github.com/nextauthjs/next-auth ) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/nextauthjs/next-auth/releases )
- [Changelog](https://github.com/nextauthjs/next-auth/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@v4.3.2...next-auth@v4.3.3 )
---
updated-dependencies:
- dependency-name: next-auth
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-26 11:06:46 +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
641d917175
chore: update test script and turborepo dependency ( #4490 )
...
Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com >
2022-05-07 13:35:46 +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
Nico Domino
714579e8d6
chore: update docs dependencies ( #4522 )
2022-05-07 00:01:02 +02:00
Negotiamini
8b6d2e3972
fix(types): typo ( #4504 )
2022-05-05 19:03:48 +02:00
Thang Vu
4f29d39521
chore: move to pnpm ( #4420 )
...
* feat: pnpm
* Update publish script
* gitignore the pnpm debug log
* Fix workspace
* Fix dev commands
* feat: pnpm
* Update publish script
* gitignore the pnpm debug log
* Fix workspace
* Fix dev commands
* chore: fix pnpm install in GitHub Action
* fix: update tsconfig path
* pnpm run -> pnpm
* chore: remove cache-node and add back setup-node
* fix: tsconfig dependencies
* chore: fix tsconfig path
* fix: adapter-test dependencies
* fix: setup-node for release-pr
* fix: import adapter-test
* chore: update workspace dependency for next-auth
* fix: test failure
* fix: add jest for adapters
* fix: jest again
* fix: mongo in prisma
* fix: `--no-git-checks` for `release-pr`
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-05-03 15:05:55 +02:00
Erica Pisani
042ed82ca0
docs: update Netlify section ( #4489 )
...
The build plugin now sets the NEXTAUTH_URL environment variable automatically
when it detects that 'next-auth' is installed in the project.
2022-05-02 00:36:56 +02:00
Jiří Hofman
a6901db11b
docs: fix typo ( #4488 )
2022-04-29 12:25:59 +02:00
Lluis Agusti
0b953bd047
test(signout): fix skipped test ( #4484 )
2022-04-28 14:19:53 +02:00
Lluis Agusti
268c0636d7
chore(github): update PR template ( #4482 )
2022-04-28 13:28:35 +02:00
Balázs Orbán
c6903d3e85
chore. bump version
2022-04-28 12:18:48 +02:00
Balázs Orbán
a74d215745
Revert "fix: loosen env variable URL fallback ( #4443 )" ( #4481 )
...
This reverts commit d4fb7af6f5 .
2022-04-28 11:50:29 +02:00
Kot
18174fae36
docs: Clarify code_challenge_method RFC requirement ( #4464 )
2022-04-28 11:45:31 +02:00
Balázs Orbán
d4fb7af6f5
fix: loosen env variable URL fallback ( #4443 )
...
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-04-28 11:42:40 +02:00
dependabot[bot]
bc15e2866e
chore(deps): bump next-auth in /apps/playground-sveltekit ( #4451 )
...
Bumps [next-auth](https://github.com/nextauthjs/next-auth ) from 4.2.1 to 4.3.2.
- [Release notes](https://github.com/nextauthjs/next-auth/releases )
- [Changelog](https://github.com/nextauthjs/next-auth/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nextauthjs/next-auth/compare/v4.2.1...next-auth@v4.3.2 )
---
updated-dependencies:
- dependency-name: next-auth
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 11:42:18 +02:00
Jonas Strassel
aee5ec2e4f
docs: remove redudant and deprecated doc ( #4475 )
...
... as `session.jwt` has been replaced with `session.strategy: 'jwt'`
2022-04-28 11:42:06 +02:00
Balázs Orbán
f0ed23acf6
fix: allow react@18 as peer dependency
2022-04-28 11:35:14 +02:00
Lluis Agusti
fb4bbc3b08
fix(ts): handle NextRequest type ( #4472 )
...
* fix(jwt): handle NextRequest
* fix(cookie): Headers from fetch request
* Update packages/next-auth/src/jwt/index.ts
* fix: tests
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-04-28 11:22:49 +02:00
Smultar
4c832f855e
Fixes 404 error, when visiting the options link ( #4462 )
...
The current link leads to nowhere.
2022-04-25 16:57:30 +02:00
Nico Domino
e3ace6e649
chore: add SIWE and signin example links ( #4463 )
...
* chore(docs): add link to SIWE example app / tutorial
* chore(docs): add link to example signin page and cleanup
* chore: update copy for SIWE credentials provider example
2022-04-24 14:18:03 +02:00
Jon Parton
8a75911567
fix(client): update 'signin' page error example ( #4412 )
...
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-04-22 18:24:33 +02:00
Lluis Agusti
8288ae5be8
fix(providers): profile types ( #4202 )
2022-04-22 13:15:24 +02:00
Jiyeol Lee
9f40cd1bd9
fix(client): add additional type ( #4402 )
...
* Add additional type
* do not cast to 'any' anymore
* add missing import
* import NextRequest from next/server
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-04-22 13:10:10 +02:00
Thang Vu
39b4d62336
docs: remove error event in config options ( #4406 )
2022-04-22 10:38:26 +02:00
Balázs Orbán
1faae313fa
docs: update callbacks
2022-04-20 19:27:01 +02:00
Balázs Orbán
e71118b996
chore: bump versions
2022-04-20 19:07:54 +02:00
Balázs Orbán
afdb3c8d7c
fix: more strict default callback url handling
2022-04-20 18:52:24 +02:00
Raúl Marín
fd755bc29e
fix(signin): set email sign-in input to "email" & "required"( #4352 )
...
* fix(core\pages\signin.tsx): set type of built-in email sign-in input to email for browse validation
* fix(core\pages\signin.tsx): add required attribute to built-in sign-in email input
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-04-15 19:12:01 +02:00
Yisu Kim
59daa0e43f
fix(providers): add optional chaining to avoid nullish reference errors ( #4365 )
2022-04-14 16:35:54 +02:00
Simon Kirsten
58d06ed727
fix: Cleanup global __NEXTAUTH state after unmount ( #4383 )
2022-04-14 16:35:10 +02:00
Salah Eddine
82159d3e8f
docs: remove auth from keycloack url ( #4391 )
...
in keycloak 17.0+ , There's a change in endpoints as per the official documentation (https://www.keycloak.org/docs-api/11.0/rest-api/index.html#_users_resource ) .
so the new url well be https://my-keycloak-domain.com/realms/My_Realm
2022-04-14 16:28:21 +02:00
Balázs Orbán
abb9fed7aa
chore: bump versions
2022-04-14 11:09:32 +02:00
Balázs Orbán
5471c0f675
chore: use --no-workspaces
...
See: https://github.com/npm/cli/issues/4605#issuecomment-1076900100
2022-04-14 11:03:27 +02:00
Balázs Orbán
b2da0b38d4
chore: add --verbose
2022-04-14 10:54:20 +02:00
Balázs Orbán
b3b8d4be46
chore: log npm config list
2022-04-13 18:05:21 +02:00
Balázs Orbán
182e118d9b
chore: else
2022-04-13 15:19:18 +02:00
Balázs Orbán
7183b06939
chore: write .npmrc
2022-04-13 15:18:35 +02:00
Balázs Orbán
bd10e87bf4
chore: more visible log
2022-04-13 15:08:14 +02:00
Balázs Orbán
d07abfe517
chore: log
2022-04-13 15:00:44 +02:00
Balázs Orbán
c1110cdc98
chore: don't write .npmrc
2022-04-13 14:35:57 +02:00
Balázs Orbán
8ed038d891
chore: revert
2022-04-12 17:05:40 +02:00
Balázs Orbán
b25425795b
chore: CI=1
2022-04-12 17:01:16 +02:00
Balázs Orbán
ad1650a817
chore: no brackets
2022-04-12 16:52:09 +02:00
Balázs Orbán
a4a487a22a
chore: NPM_TOKEN_PKG
2022-04-12 16:46:26 +02:00
Balázs Orbán
b30de36126
chore: remove cat
2022-04-12 16:36:38 +02:00
Balázs Orbán
41e4e515ad
chore: cat .npmrc
2022-04-12 16:35:12 +02:00
Balázs Orbán
cde1f82e3c
chore: revert
2022-04-12 16:26:55 +02:00
Balázs Orbán
c39782007b
chore: pkg vs org?
2022-04-12 16:22:33 +02:00
Balázs Orbán
984a089c15
chore: ignore .npmrc
2022-04-12 16:10:04 +02:00
Balázs Orbán
26f8b8c1f1
chore: remove npm whoami
2022-04-12 16:09:27 +02:00
Balázs Orbán
afc9b43c53
chore: npm whoami
2022-04-12 16:03:02 +02:00
Balázs Orbán
cdbd9ac2e6
chore: manually upgrade dep version
2022-04-12 15:39:55 +02:00
Balázs Orbán
3d8cc316f1
chore: debug release script
2022-04-12 15:32:50 +02:00
Balázs Orbán
3b8c568f79
chore: trigger deploy
2022-04-12 15:22:57 +02:00
Balázs Orbán
16668d307d
docs: revert
2022-04-12 14:17:00 +02:00
Balázs Orbán
6e15bdcb2d
fix: update default callbacks.redirect
2022-04-12 14:14:35 +02:00
Yisu Kim
7a4bf038b1
Update callbacks.md ( #4361 )
...
missing async keyword
2022-04-09 22:23:26 +02:00
Francis Gulotta
11ad64f617
docs: add google oauth URI examples ( #4347 )
...
* docs: add google oauth URI examples
* Update docs/docs/providers/google.md
Co-authored-by: Lluis Agusti <hi@llu.lu >
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-04-09 09:45:55 +02:00
Francis Gulotta
0a278b9297
docs: callbacks can now be relative ( #4346 )
...
* docs: callbacks can now be relative
since v4 anyway
* Update docs/docs/getting-started/client.md
Co-authored-by: Lluis Agusti <hi@llu.lu >
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-04-09 09:45:19 +02:00
Francis Gulotta
8c8070f30b
docs(client): fix type in signIn examples ( #4308 )
2022-04-07 12:58:06 +02:00
Christopher Reece
6442d089c1
docs(adapters): update providerAccount to account ( #4329 )
2022-04-07 12:45:41 +02:00
Francis Gulotta
63398d4c3f
docs: Update JWT docs to reflect JWE changes in v4 ( #4313 )
...
* docs: Update JWT docs to reflect JWE changes in v4
This PR https://github.com/nextauthjs/next-auth/pull/3039 changed the defaults for JWT tokens to be encrypted by default (JWE). We have conflicting documentation across the docs site and readme.
Additionatlly this PR https://github.com/nextauthjs/next-auth/pull/3783 made providing a secret required in production via NEXTAUTH_SECRET or an option.
* Missed a reference
* Update docs/docs/faq.md
Co-authored-by: Nico Domino <yo@ndo.dev >
* Update docs/docs/faq.md
Co-authored-by: Nico Domino <yo@ndo.dev >
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-04-05 12:48:06 +02:00
Oliver Terbu
0d54170e83
feat: added siwe tutorial ( #4276 )
...
Co-authored-by: Oliver Terbu <oliver@awoie.local >
2022-04-04 22:52:55 +02:00
Francis Gulotta
174f0d6aec
chore(docs): fix Custom Client Session Handling example ( #4310 )
...
* docs: fix Custom Client Session Handling example
It made reference to a useEffect call that was no longer needed.
* Update docs/docs/getting-started/client.md
Co-authored-by: Lluis Agusti <hi@llu.lu >
Co-authored-by: Lluis Agusti <hi@llu.lu >
2022-04-04 22:11:59 +02:00
Francis Gulotta
f91b9dc03d
docs: Add some more context to the adapters page ( #4303 )
...
Link the models to the adapters page to provide some context about what is passed into each function.
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-04-02 12:48:19 +02:00
Sriram Jothiswaran
8763e4aeb9
chore(docs): update prisma mongodb connector required modifications ( #4304 )
...
* Update for Mongodb prisma connector
In reference to https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#model-field-scalar-types , for scalar type String the native MongoDB type attribute is @db.String.
* Update prisma.md
2022-04-02 12:48:06 +02:00
Danny Luedke
e936c51575
Fix API directory ( #4283 )
...
Update the API directory from `pages/api/[...nextauth].ts` to `pages/api/auth/[...nextauth].ts` so it matches the typescript example.
2022-03-29 22:44:24 +02:00
dependabot[bot]
8d7ba75bca
chore(deps): bump minimist in /apps/playground-sveltekit ( #4261 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 11:18:36 +02:00
dependabot[bot]
67038b4022
chore(deps): bump node-forge from 1.2.1 to 1.3.0 ( #4262 )
...
Bumps [node-forge](https://github.com/digitalbazaar/forge ) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/digitalbazaar/forge/releases )
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md )
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.2.1...v1.3.0 )
---
updated-dependencies:
- dependency-name: node-forge
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 11:18:24 +02:00
dependabot[bot]
5b7ce98a87
chore(deps): bump minimist from 1.2.5 to 1.2.6 ( #4263 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 11:18:07 +02:00
Chandler GREFF
1c468f057d
docs: fix return type in jwt decode example ( #4273 )
2022-03-28 11:17:52 +02:00
Nico Domino
ef22c5b835
chore(docs): add carbon ads to docs sidebar ( #4250 )
...
* chore(docs): add carbon ads to docs page
* fix: add carbon-wrap element
* fix: script in docusaurus config object
* fix: add _carbonads_js id
* fix: add script directly to sidebar
* fix: carbon ads style
* chore: bump ad container down a bit
2022-03-25 19:24:05 +01:00
Grégory D'Angelo
a912739b24
chore(docs): add full stack course (Next.js/NextAuth.js/Supabase/Prisma) ( #4086 )
...
* Add free course ""
* Adjust new entry formatting to comply with all the other resources in the page
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-03-23 19:50:26 +01:00
Nico Domino
ae318788c3
chore(docs): fix broken tutorial links ( #4241 )
2022-03-23 19:32:24 +01:00
1000101
affa459fcc
fix(docs): v3->v4 migration ( #4039 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-03-23 19:18:23 +01:00
Nico Domino
b88a31ef1a
chore(docs): add tutorial for avoiding corporate email scanning HEAD reqs ( #3900 )
...
* chore(docs): add tutorial for avoiding corporate email scanning HEAD requests breaking email invitations
* fix: move to internal guides section
2022-03-22 23:29:05 +01:00
Nico Domino
bc82d6555a
chore(docs): add corporate proxy tutorial ( #3931 )
...
* chore(docs): add corporate proxy tutorial
* fix(docs): add details about provider proxy adjustments
* fix: add to internal guides section
2022-03-22 23:27:14 +01:00
Thang Vu
11954567c2
docs: fix markdown link in jwt options ( #4197 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-03-22 22:55:21 +01:00
Thang Vu
6e28ccf84f
chore(adapters): Add next-autth as devDependencies for adapters ( #4226 )
...
* Upgrade turborepo, add next-auth as dev deps
* Fix TS error
* Update adapters.json
* ignore linting
2022-03-21 21:26:37 +01:00
Deepak Prabhakara
f542b400ba
updated port number (5000 is blocked by MacOS AirPlay) ( #4221 )
2022-03-19 09:30:21 +01:00
Piyush Priyadarshi
d1b76bc302
docs: remove unused negation operator ( #4217 )
2022-03-18 22:28:43 +01:00
Andreas Thomas
3f396be5d9
feat(deps): upgrade minimal peer dependency @upstash/redis@v1 ( #4213 )
...
BREAKING CHANGE
From now on, you will need a minimum version of `@upstash/redis@v1` installed if you want to use this adapter.
You can upgrade by running `npm i @upstash/redis@latest` or `yarn add @upstash/redis@latest`
2022-03-18 22:27:45 +01:00
Balázs Orbán
bf4916dd70
chore: manually bump versions
2022-03-17 19:24:08 +01:00
Balázs Orbán
5100784d72
chore: update tsconfig
2022-03-17 19:03:26 +01:00
Balázs Orbán
3853e16268
chore: downgrade turbo
2022-03-17 18:57:46 +01:00
Balázs Orbán
4c0cc9e614
chore: manually bump package versions
...
since the last automatic release failed to do so
2022-03-17 18:38:20 +01:00
Balázs Orbán
d0112aae61
chore: upgrade lock file
2022-03-17 16:49:37 +01:00
Balázs Orbán
e373ff2473
chore: exclude firebase
2022-03-17 15:03:39 +01:00
Balázs Orbán
6d6d0a8679
Merge branch 'main' of github.com:nextauthjs/next-auth
2022-03-17 13:51:39 +01:00
Balázs Orbán
8152752cc8
chore: exclude firebase from testing
2022-03-17 13:51:31 +01:00
Andreas Thomas
966381ac9b
docs: pin @upstash/redis version to 0.2.1 ( #4201 )
...
Until we migrate to v1 there might be people installing the latest
version of @upstash/redis and then encountering errors.
With this they will at least get a warning.
This is obsolete and should be updated once
https://github.com/nextauthjs/next-auth/issues/4183 is resolved.
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-03-17 13:44:21 +01:00
Wayne Shih
8199c96b76
fix: update font-family stack ( #4192 )
2022-03-17 13:43:08 +01:00
Balázs Orbán
6a06b8e054
chore: ignore building firebase adapter
2022-03-17 13:41:58 +01:00
Thang Vu
68bab17914
fix: set module to commonjs for adapters ( #4205 )
...
* fix: set module to commonjs for adapters
* Update tsconfig.json
* Update tsconfig.json
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-03-17 13:36:25 +01:00
Nico Domino
47b4765941
docs: 1st party guides section ( #4167 )
...
* chore: simplify example-gatsby readme header
* chore(docs): move 1st party guides to own section
2022-03-16 00:01:29 +01:00
Simon Kirsten
6d45ad4840
fix: encode callbackUrl for custom sign-in page ( #4174 )
2022-03-15 23:57:52 +01:00
Alexandru Călin
e5e49aca1c
docs(adapters): add dynamoDB cf ProjectionType ( #4182 )
2022-03-15 23:54:50 +01:00
Lluis Agusti
ea944ebb86
docs(oauth): use Mermaid for the diagram ( #4147 )
2022-03-15 23:54:19 +01:00
Balázs Orbán
ca8af7fcd5
chore: push tags before GitHub release
2022-03-15 23:13:08 +01:00