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
a767456e36
docs: fix link
...
Closes #8760
2023-10-02 01:02:28 +01: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
e9ad688a5a
docs: add session strategies concepts
2023-09-29 22:07:06 +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
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
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
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
Thang Vu
c818d028aa
fix: missing closing tag in adapters doc
2023-09-16 20:42:14 +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
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
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
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
Thang Vu
e999511a2e
docs: add framework tabs in getting started & guide ( #8470 )
2023-09-01 13:45:16 +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
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
c5fc3e66ad
docs: rename @next-auth/* to @auth/*
2023-08-24 11:20:44 +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
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
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
titanism
bbfc11e74c
docs: updated nodemailer email example ( #8210 )
2023-08-03 16:14:39 +02:00
Jabed
96d666465f
docs: fixed the typescript error in nextjs example ( #8224 )
2023-08-03 15:58:37 +02:00
hamzah syed
87ec13bd00
docs: Fixed broken link ( #8172 )
2023-07-31 11:23:10 +02:00
Balázs Orbán
c7b36f45a3
docs: update nodemailer link
...
Fixes #8141
2023-07-26 14:57:22 +02: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
Balázs Orbán
7fa51e2a61
docs: clarify preview deployment guide
2023-07-06 16:44:31 +02: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
Koen Bolhuis
a0f3b04c43
docs: Fix typo in email tutorial ( #7769 )
2023-06-13 12:11:04 +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
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
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
TATHAGATA ROY
60af446338
docs: Cypress.Cookies.defaults removed ( #7574 )
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
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
Balázs Orbán
6111662df7
docs: Update creating-a-database-adapter.md
2023-04-30 09:52:47 +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
9018939ee7
docs: clean up databases intro page
...
#7221
2023-04-17 11:40:59 +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
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
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