-
-
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(adapters): Drizzle adapter (#8258)
Co-authored-by: Anthony Shew <anthonyshew@gmail.com>
- Loading branch information
1 parent
363440e
commit d47b567
Showing
31 changed files
with
2,539 additions
and
213 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<p align="center"> | ||
<br/> | ||
<a href="https://authjs.dev" target="_blank"> | ||
<img height="64px" src="https://authjs.dev/img/logo/logo-sm.png" /> | ||
</a> | ||
<a href="https://github.com/drizzle-team/drizzle-orm" target="_blank"> | ||
<img height="64px" src="https://pbs.twimg.com/profile_images/1598308842391179266/CtXrfLnk_400x400.jpg"/> | ||
</a> | ||
<h3 align="center"><b>Drizzle ORM Adapter</b> - NextAuth.js / Auth.js</a></h3> | ||
<p align="center" style="align: center;"> | ||
<a href="https://npm.im/@auth/drizzle-adapter"> | ||
<img src="https://img.shields.io/badge/TypeScript-blue?style=flat-square" alt="TypeScript" /> | ||
</a> | ||
<a href="https://npm.im/@auth/drizzle-adapter"> | ||
<img alt="npm" src="https://img.shields.io/npm/v/@auth/drizzle-adapter?color=green&label=@auth/drizzle-adapter&style=flat-square"> | ||
</a> | ||
<a href="https://www.npmtrends.com/@auth/drizzle-adapter"> | ||
<img src="https://img.shields.io/npm/dm/@auth/drizzle-adapter?label=%20downloads&style=flat-square" alt="Downloads" /> | ||
</a> | ||
<a href="https://github.com/nextauthjs/next-auth/stargazers"> | ||
<img src="https://img.shields.io/github/stars/nextauthjs/next-auth?style=flat-square" alt="Github Stars" /> | ||
</a> | ||
</p> | ||
</p> | ||
|
||
--- | ||
|
||
Check out the documentation at [authjs.dev](https://authjs.dev/reference/adapter/drizzle). |
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"name": "@auth/drizzle-adapter", | ||
"version": "0.0.1", | ||
"description": "Drizzle adapter for Auth.js.", | ||
"homepage": "https://authjs.dev", | ||
"repository": "https://github.com/nextauthjs/next-auth", | ||
"bugs": { | ||
"url": "https://github.com/nextauthjs/next-auth/issues" | ||
}, | ||
"author": "Anthony Shew", | ||
"type": "module", | ||
"types": "./index.d.ts", | ||
"files": [ | ||
"*.js", | ||
"*.d.ts*", | ||
"lib", | ||
"src" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./index.js" | ||
} | ||
}, | ||
"license": "ISC", | ||
"keywords": [ | ||
"next-auth", | ||
"@auth", | ||
"Auth.js", | ||
"next.js", | ||
"oauth", | ||
"drizzle" | ||
], | ||
"private": false, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"clean": "find . -type d -name \".drizzle\" | xargs rm -rf", | ||
"test": "pnpm test:mysql && pnpm test:sqlite && pnpm test:pg", | ||
"test:mysql": "pnpm clean && ./tests/mysql/test.sh", | ||
"test:sqlite": "pnpm clean && ./tests/sqlite/test.sh", | ||
"test:pg": "pnpm clean && ./tests/pg/test.sh", | ||
"build": "tsc", | ||
"dev": "drizzle-kit generate:mysql --schema=src/schema.ts --out=.drizzle && tsc -w" | ||
}, | ||
"dependencies": { | ||
"@auth/core": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@next-auth/adapter-test": "workspace:*", | ||
"@next-auth/tsconfig": "workspace:*", | ||
"@types/better-sqlite3": "^7.6.4", | ||
"@types/uuid": "^8.3.3", | ||
"better-sqlite3": "^8.4.0", | ||
"drizzle-kit": "^0.19.5", | ||
"drizzle-orm": "^0.27.0", | ||
"jest": "^27.4.3", | ||
"mysql2": "^3.2.0", | ||
"postgres": "^3.3.4" | ||
}, | ||
"jest": { | ||
"preset": "@next-auth/adapter-test/jest" | ||
} | ||
} |
Oops, something went wrong.
d47b567
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
providers.authjs.dev
auth-docs-git-main-authjs.vercel.app
www.authjs.dev
warnings.authjs.dev
authjs.dev
sveltekit.authjs.dev
adapters.authjs.dev
errors.authjs.dev