@auth/drizzle-adapter 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3 -3
- package/index.js +3 -3
- package/package.json +3 -6
- package/src/index.ts +3 -3
package/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ## Installation
|
|
10
10
|
*
|
|
11
|
-
* ```bash
|
|
11
|
+
* ```bash npm2yarn
|
|
12
12
|
* npm install drizzle-orm @auth/drizzle-adapter
|
|
13
13
|
* npm install drizzle-kit --save-dev
|
|
14
14
|
* ```
|
|
@@ -43,7 +43,7 @@ import type { Adapter } from "@auth/core/adapters";
|
|
|
43
43
|
*
|
|
44
44
|
* ## Setup
|
|
45
45
|
*
|
|
46
|
-
* First, create a schema that includes [the minimum requirements for a `next-auth` adapter](/reference/adapters#models). You can select your favorite SQL flavor below and copy it.
|
|
46
|
+
* First, create a schema that includes [the minimum requirements for a `next-auth` adapter](/reference/core/adapters#models). You can select your favorite SQL flavor below and copy it.
|
|
47
47
|
* Additionally, you may extend the schema from the minimum requirements to suit your needs.
|
|
48
48
|
*
|
|
49
49
|
* - [Postgres](#postgres)
|
|
@@ -147,7 +147,7 @@ import type { Adapter } from "@auth/core/adapters";
|
|
|
147
147
|
* expires_at: int("expires_at"),
|
|
148
148
|
* token_type: varchar("token_type", { length: 255 }),
|
|
149
149
|
* scope: varchar("scope", { length: 255 }),
|
|
150
|
-
* id_token: varchar("id_token", { length:
|
|
150
|
+
* id_token: varchar("id_token", { length: 2048 }),
|
|
151
151
|
* session_state: varchar("session_state", { length: 255 }),
|
|
152
152
|
* },
|
|
153
153
|
* (account) => ({
|
package/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ## Installation
|
|
10
10
|
*
|
|
11
|
-
* ```bash
|
|
11
|
+
* ```bash npm2yarn
|
|
12
12
|
* npm install drizzle-orm @auth/drizzle-adapter
|
|
13
13
|
* npm install drizzle-kit --save-dev
|
|
14
14
|
* ```
|
|
@@ -48,7 +48,7 @@ import { is } from "drizzle-orm";
|
|
|
48
48
|
*
|
|
49
49
|
* ## Setup
|
|
50
50
|
*
|
|
51
|
-
* First, create a schema that includes [the minimum requirements for a `next-auth` adapter](/reference/adapters#models). You can select your favorite SQL flavor below and copy it.
|
|
51
|
+
* First, create a schema that includes [the minimum requirements for a `next-auth` adapter](/reference/core/adapters#models). You can select your favorite SQL flavor below and copy it.
|
|
52
52
|
* Additionally, you may extend the schema from the minimum requirements to suit your needs.
|
|
53
53
|
*
|
|
54
54
|
* - [Postgres](#postgres)
|
|
@@ -152,7 +152,7 @@ import { is } from "drizzle-orm";
|
|
|
152
152
|
* expires_at: int("expires_at"),
|
|
153
153
|
* token_type: varchar("token_type", { length: 255 }),
|
|
154
154
|
* scope: varchar("scope", { length: 255 }),
|
|
155
|
-
* id_token: varchar("id_token", { length:
|
|
155
|
+
* id_token: varchar("id_token", { length: 2048 }),
|
|
156
156
|
* session_state: varchar("session_state", { length: 255 }),
|
|
157
157
|
* },
|
|
158
158
|
* (account) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auth/drizzle-adapter",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Drizzle adapter for Auth.js.",
|
|
5
5
|
"homepage": "https://authjs.dev",
|
|
6
6
|
"repository": "https://github.com/nextauthjs/next-auth",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@auth/core": "0.18.
|
|
39
|
+
"@auth/core": "0.18.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/better-sqlite3": "^7.6.4",
|
|
@@ -44,11 +44,8 @@
|
|
|
44
44
|
"better-sqlite3": "^8.6.0",
|
|
45
45
|
"drizzle-kit": "^0.19.5",
|
|
46
46
|
"drizzle-orm": "^0.28.6",
|
|
47
|
-
"jest": "^27.4.3",
|
|
48
47
|
"mysql2": "^3.2.0",
|
|
49
|
-
"postgres": "^3.3.4"
|
|
50
|
-
"@auth/tsconfig": "0.0.0",
|
|
51
|
-
"@auth/adapter-test": "0.0.0"
|
|
48
|
+
"postgres": "^3.3.4"
|
|
52
49
|
},
|
|
53
50
|
"jest": {
|
|
54
51
|
"preset": "@auth/adapter-test/jest"
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ## Installation
|
|
10
10
|
*
|
|
11
|
-
* ```bash
|
|
11
|
+
* ```bash npm2yarn
|
|
12
12
|
* npm install drizzle-orm @auth/drizzle-adapter
|
|
13
13
|
* npm install drizzle-kit --save-dev
|
|
14
14
|
* ```
|
|
@@ -53,7 +53,7 @@ import type { Adapter } from "@auth/core/adapters"
|
|
|
53
53
|
*
|
|
54
54
|
* ## Setup
|
|
55
55
|
*
|
|
56
|
-
* First, create a schema that includes [the minimum requirements for a `next-auth` adapter](/reference/adapters#models). You can select your favorite SQL flavor below and copy it.
|
|
56
|
+
* First, create a schema that includes [the minimum requirements for a `next-auth` adapter](/reference/core/adapters#models). You can select your favorite SQL flavor below and copy it.
|
|
57
57
|
* Additionally, you may extend the schema from the minimum requirements to suit your needs.
|
|
58
58
|
*
|
|
59
59
|
* - [Postgres](#postgres)
|
|
@@ -157,7 +157,7 @@ import type { Adapter } from "@auth/core/adapters"
|
|
|
157
157
|
* expires_at: int("expires_at"),
|
|
158
158
|
* token_type: varchar("token_type", { length: 255 }),
|
|
159
159
|
* scope: varchar("scope", { length: 255 }),
|
|
160
|
-
* id_token: varchar("id_token", { length:
|
|
160
|
+
* id_token: varchar("id_token", { length: 2048 }),
|
|
161
161
|
* session_state: varchar("session_state", { length: 255 }),
|
|
162
162
|
* },
|
|
163
163
|
* (account) => ({
|