Balázs Orbán
7cf0074417
chore: cleanup
2023-09-29 22:29:09 +02:00
Balázs Orbán
559842fe02
chore: remove v4 dev app
2023-09-28 00:51:04 +02:00
Natsuki Ikeguchi
c9fc84ee82
build(deps): Remove better-sqlite3@7 ( #8719 )
2023-09-26 02:05:56 +02: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
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
Balázs Orbán
9c6f81308c
chore: bump pnpm and typescript
2023-08-24 20:31:33 +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
Danny Zhang
ecbf0be22e
docs: correct broken CONTRIBUTING.md link in apps/dev/nextjs-v4 ( #8163 )
2023-07-31 11:23:32 +02: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
48b9a0203e
chore: dev environment clean up
2023-07-23 14:13:31 +07: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
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
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
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
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
98add24526
chore: bump react types
2023-04-21 12:25:48 +02: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
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
Thang Vu
fa58065951
chore: move next-auth from v4 to main ( #7265 )
2023-04-15 17:02:46 +01: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
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
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
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
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
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
Thang Vu
c441f681af
chore: don't use latest for examples dependencies
2023-01-10 13:37:51 +07:00
Thang Vu
5884574765
chore(dev): simplify header.js component
2023-01-04 21:53:55 +07: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
2e52a89c52
docs: fix links to moved docs ( #6196 )
2022-12-27 16:10:31 +01:00
Balázs Orbán
955e379330
chore: format
2022-12-25 05:59:12 +01:00
Balázs Orbán
137d993a13
chore(dev): upgrade next
2022-12-24 17:15:35 +01:00
Balázs Orbán
e47c3c81f1
chore: format
2022-12-24 01:47:46 +01:00
Nico Domino
0ea9ada3a9
chore(docs): remaining authjs.dev and repo clean up ( #6097 )
2022-12-22 18:04:52 +01: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
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
Arnaud Zheng
6f22a49c7d
chore: removing console log ( #6061 )
2022-12-15 00:24:15 +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
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
c1424136db
chore(dev): don't load all adapters in dev app
2022-12-03 13:45:06 +01: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
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
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
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
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