-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`
- Loading branch information
1 parent
43deda5
commit d414e01
Showing
15 changed files
with
73 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
packages/adapter-dgraph/src/client.ts → packages/adapter-dgraph/src/lib/client.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
{ | ||
"extends": "@next-auth/tsconfig/tsconfig.adapters.json", | ||
"extends": "@next-auth/tsconfig/tsconfig.base.json", | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"baseUrl": ".", | ||
"isolatedModules": true, | ||
"target": "ES2020", | ||
"module": "ESNext", | ||
"moduleResolution": "node", | ||
"outDir": ".", | ||
"rootDir": "src", | ||
"outDir": "dist" | ||
"skipDefaultLibCheck": true, | ||
"strictNullChecks": true, | ||
"stripInternal": true, | ||
"declarationMap": true, | ||
"declaration": true | ||
}, | ||
"exclude": ["tests", "dist", "jest.config.js"] | ||
} | ||
"include": [ | ||
"src/**/*" | ||
], | ||
"exclude": [ | ||
"*.js", | ||
"*.d.ts", | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d414e01
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
auth-docs – ./docs
auth-docs-authjs.vercel.app
next-auth-docs-m1mt.vercel.app
www.authjs.dev
auth-docs-git-main-authjs.vercel.app
adapters.authjs.dev
errors.authjs.dev
warnings.authjs.dev
authjs.dev
sveltekit.authjs.dev
providers.authjs.dev