Balázs Orbán
3fe7a64e7a
chore: monorepo 1 ( #3804 )
...
* fix labeler
* try fixing test runs in GitHub Actions
* pass flags to test command
* test version pr
* move versoin-pr action
* remove --dry-run flag
* re-enable testing, re-add semantic release for now
* add docs
* use `yarn.lock` and different docs port
* simplify dev app config
* fix coverage report
* fix provider source links
* fix more links
2022-02-04 16:01:26 +01:00
Thang Vu
a72f1b6d21
chore: Convert to monorepo ( #3788 )
...
* chore: convert to monorepo
* Remove eslint, typescript, semantic-release
* Add yarn.lock
* Add turbo
* Run test command
* Move to src
* Add a seperate tsconfig file
* Update .gitignore
* Update commands to yarn
* Replace semantic-release with changesets
* Update changesets usage
* Fix commands: dev, setup, clean
* Add back changes from main
* Fixed HMR
* Update .gitignore
2022-02-04 13:40:04 +01:00
Balázs Orbán
f7fc562b49
fix(middleware): handle no argument case ( #3799 )
...
* fix(middleware): handle no argument case
* use absolute URLs
* use origin instead of host
v4.2.1
2022-02-04 00:27:51 +01:00
Balázs Orbán
f3be5e87f6
feat(middleware): introduce withAuth Next.js method ( #3657 )
...
* feat(middleware): introduce Middleware API to Next.js
* chore(app): upgrade Next.js in dev app
* chore(dev): add Middleware protected page to dev app
* chore(middleware): add `next/middleware` to `exports`
* fix(middleware): bail out redirect on custom pages
* fix(middleware): allow one-line export
* chore(middleware): simplify code
* fix(middleware): redirect back to page after succesful login
* feat(middleware): re-export `withAuth` as `default`
* chore: export middleware from `next-auth/middleware`
* chore: add `middleware` files to npm
* feat(middleware): handle chaining, fix some bugs
* chore(dev): showcase different middlewares
* chore(middleware): remove `@ts-expect-error` comments
* chore: update build clean script
* fix: bail out when NextAuth.js paths
* refactor: be more explicit about `initConfig` result
* refactor: simplify
* refactor: use `callbacks` similarily to `NextAuthOptions`
* refactor: use `nextauth` namespace when setting `token` on `req`
* refactor: don't allow passing `secret`
* addressing review
v4.2.0
2022-02-03 18:07:26 +01:00
Dinil Fernando
844c9b147c
feat(providers): add Trakt provider ( #3771 )
...
* added trakt provider
* fixed incorrect auth url
* Update src/providers/trakt.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update src/providers/trakt.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update trakt.ts
Co-authored-by: caidenwilson <caidenwilson@protonmail.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-02-03 15:27:05 +01:00
Balázs Orbán
c9e16fb71e
fix(core): only show Twitter OAuth 2 warning once
2022-02-02 16:06:14 +01:00
Balázs Orbán
a7d34f97c8
fix(providers): properly warn when using Twitter OAuth 2 ( #3784 )
...
* fix(providers): properly warn when using Twitter OAuth 2
* refactor(providers): move Twitter OAuth2 warning to `assert`
* fix: use proper warning code
* refactor: only set boolean
2022-02-02 12:37:17 +01:00
Balázs Orbán
f20d6790c8
feat(core): detect NEXTAUTH_SECRET ( #3783 )
...
* feat(core): detect `NEXTAUTH_SECRET` env variable
* chore(dev): use detected `NEXTAUTH_SECRET` in dev app
2022-02-02 02:08:56 +01:00
Norbert Szabó
53baf6d67d
feat(ts): strongly type sign-in and error page errors ( #3740 )
...
* feat: added types for sign in errors
* feat: adding type to error prop
* chore: added documentation links to types
2022-02-02 02:08:44 +01:00
dependabot[bot]
255c822dfb
chore(deps): bump node-fetch from 2.6.6 to 2.6.7 ( #3777 )
...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch ) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases )
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7 )
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 08:18:26 +01:00
inshatan
31c03c96d1
typo in redirect url for response with error ( #3758 )
2022-02-01 08:18:09 +01:00
dependabot[bot]
74df39a678
chore(deps-dev): bump next from 12.0.7 to 12.0.9 ( #3764 )
...
Bumps [next](https://github.com/vercel/next.js ) from 12.0.7 to 12.0.9.
- [Release notes](https://github.com/vercel/next.js/releases )
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js )
- [Commits](https://github.com/vercel/next.js/compare/v12.0.7...v12.0.9 )
---
updated-dependencies:
- dependency-name: next
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-02-01 08:16:25 +01:00
Balázs Orbán
714d80a4f5
Update package.json
2022-01-25 18:39:58 +01:00
Balázs Orbán
3d5c669a05
Update bug_report.yaml
2022-01-25 18:37:30 +01:00
Balázs Orbán
29977f108f
Update bug_report.yaml
2022-01-25 18:36:56 +01:00
Balázs Orbán
7d2e16a6bb
Update bug_report.yaml
2022-01-25 18:35:54 +01:00
Seiji Takahashi
af157dac07
feat(react): add refetchOnWindowFocus option to SessionProvider ( #3730 )
2022-01-25 18:06:37 +01:00
Alex Johansson
1bf56a218e
fix: Allow React 18 as peer dependency ( #3728 )
...
Avoid peer dependency warning when using React 18
2022-01-25 18:02:53 +01:00
David Chalifoux
4824f8c02a
fix(providers): Check for valid profile picture response before converting to base64 ( #3656 )
...
* Fix: Add OpenID to authorization scope
* Fix: Check for valid profile picture response before converting to base64
* Update src/providers/azure-ad.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Confirm that profile photo was returned
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-01-20 02:09:04 +01:00
PAKKU-Chan
a4d831d1b9
feat(providers): add authentik provider ( #3625 )
...
* Added authentik provider
* Removed idToken
2022-01-19 01:38:46 +01:00
David Chalifoux
59985264a2
fix(providers): use openid scopes by default ( #3651 )
v4.1.2
2022-01-17 04:28:15 +01:00
Iftekhar Rifat
c844296982
fix: pass csrf & callbackUrl cookies in session api ( #3607 )
v4.1.1
2022-01-17 00:41:16 +01:00
Jon Bellah
d1aa2a1a8e
fix(ts): match GoogleProfile interface with Google docs ( #3643 )
2022-01-17 00:40:23 +01:00
Balázs Orbán
8139126f29
fix(core): detect Vercel without NEXTAUTH_URL ( #3649 )
...
* fix(core): detect Vercel without `NEXTAUTH_URL`
* chore(ts): use `any`
* chore: use `process.env.VERCEL` to detect Vercel
2022-01-17 00:37:30 +01:00
Laxmikanta Nayak
aa0e8200b3
docs: Updated the wrong link to providers list in readme ( #3616 )
...
The link to providers list was 404 so updated to the correct link in document.
2022-01-15 04:44:31 +01:00
Thang Vu
82447f8e3e
fix: display inline errors when using custom error page. ( #3576 )
v4.1.0
2022-01-10 11:57:27 +01:00
Balázs Orbán
a0b3814c81
feat: better out-of-the-box id_token detection ( #3514 )
...
* feat: better out-of-the-box `id_token` detection
* fix: check for `scope` on correct endpoint
* chore: simplify internal typing
2022-01-10 11:50:45 +01:00
Balázs Orbán
90c7d535c0
feat(providers): add support to Twitter OAuth 2.0 ( #3446 )
...
* feat(providers): add support to Twitter OAuth 2.0
* docs: add docs comment
* chore: cleanup
* chore: remove comments
* chore: give warning for OAuth 2 for now
2022-01-10 11:49:43 +01:00
Tetedeiench
0510c9b1ba
feat(providers): add Patreon provider ( #3581 )
...
* Added patreon provider - tested and working
* Update src/providers/patreon.js
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update src/providers/patreon.js
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update src/providers/patreon.js
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Update src/providers/patreon.js
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Switched to TS, restore .env.local, restore package.json as per comments on the PR
* chore: ran Prettier
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-01-10 11:48:11 +01:00
Changsoon Bok
49e4af17e2
fix(providers): refactor naver provider profile ( #3500 )
...
* fix(providers): refactor naver provider profile
fix(providers): refactor naver provider profile
* fix(providers): convert typescript - naver provider profile
fix(providers): convert typescript - naver provider profile
* chore(providers): use nested interface for consistency
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-01-10 11:35:53 +01:00
Changsoon Bok
db65afe5ab
fix(providers): fix url and auth method for Kakao provider ( #3501 )
...
* fix(providers): fix url and auth method for Kakao provider
* fix(providers): convert typescript - Kakao provider
fix(providers): convert typescript - Kakao provider
* chore(providers): use nested interface for consistency
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-01-10 11:31:55 +01:00
Changsoon Bok
36ca1f99e3
docs: update contributing guide link ( #3595 )
2022-01-10 11:22:58 +01:00
Thang Vu
9bec96784f
chore(dev): add postinstall in app to remove next-auth ( #3575 )
2022-01-08 00:43:38 +01:00
Thang Vu
227ff2259f
chore: add eslintIgnore in package.json ( #3548 )
...
* fix: add eslintIgnore in package.json
* Let eslint runs in app, config + js files
* Add a separate tsconfig.eslint.json file
We want to run the lint command on `app`, `src` and `config`, but at the same time want `tsc` to compile files in `src` only. A separate `tsconfig.eslint.json` is a suitable solution to satisfy both `eslint` and `tsc`: 04d1f3e549/packages/parser/README.md
2022-01-05 04:02:03 +01:00
Yves Fridelance
c71cb8457d
fix(oauth): set httpOptions before issuer discovery ( #3537 )
...
* Update client.ts
Set custom.setHttpOptionsDefaults before Issuer.discover(.wellKnown). This allow discover the .wellKnown endpoint behind a proxy
* chore: address code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-01-02 00:04:23 +01:00
krautwigundrüben
a09a75be53
fix(providers): make Strava work again ( #3520 )
...
* Update strava.js
Auth with Strava was throwing errors before, this works.
* Update strava.js
changed according to commenters' suggestions
* chore: run linter
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-01-02 00:00:33 +01:00
Balázs Orbán
c4936991e5
chore(app): upgrade dev app dependencies
2021-12-31 00:41:59 +01:00
Thang Vu
e2add6a597
chore(dev): fix start email script ( #3541 )
2021-12-30 22:42:26 +01:00
Adam Kaczmarek
0e8be0c7d2
docs: fix OpenCollective link in README.md ( #3494 )
v4.0.6
2021-12-22 00:42:21 +01:00
Ivan Esteban
d1d2d977fe
fix(providers): use idToken by default in Cognito provider ( #3448 )
2021-12-18 02:21:20 +01:00
Kirankumar Ambati
48749d7320
fix(pages): remove default placeholder for credentials provider ( #3451 )
...
* fix #3449 : removed default placeholder for credentials provider
* fix: formatting
2021-12-18 02:10:05 +01:00
Drew Miller
87d0beb70c
fix(jwt): use authorization header as fallback ( #3453 )
...
If the `req` sent to `getToken` doesn't have the relevant cookies, use
the Bearer token in the Authorization header as a fallback.
Fixes #3452
2021-12-16 13:37:03 +01:00
Balázs Orbán
978e2eeb08
chore(dev): minor fixes on dev app
2021-12-11 21:19:12 +01:00
Balázs Orbán
8ab057ea33
chore(deps): ugprade dependencies ( #3415 )
2021-12-11 21:17:22 +01:00
Bogdan Soare
2c269a6a81
fix(providers): use id_token by default on Okta provider ( #3418 )
2021-12-11 12:52:40 +01:00
Alessandro Cuppari
8b9a109255
fix(providers): refactor FusionAuth to v4 ( #3376 )
...
* feat: updated fusionauth provider
* Updated fusionauth profile interface docstring
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Refactored openid well know logic
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Removed jwks endpoint property
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2021-12-09 21:48:01 +01:00
Etienne Martin
ac35d9f739
docs: Fix README.md typo ( #3412 )
2021-12-09 16:53:17 +01:00
Balázs Orbán
30a0fc6bc0
fix: properly handle callback URL fallback ( #3402 )
...
* fix: don't default to localhost on `host`
* fall back to `host` for `callbackUrl`
* use parsed host
* remove unnecessary type cast
v4.0.5
2021-12-08 18:20:33 +01:00
Balázs Orbán
b0f6175cec
chore(deps): upgrade next dev dependency
2021-12-08 17:50:25 +01:00
Balázs Orbán
1c7fe57edb
fix: default to VERCEL_URL for callbackUrl
v4.0.4
2021-12-08 17:43:49 +01:00