najm-auth 3.3.1 → 3.4.0

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.
@@ -235,7 +235,7 @@ declare const usersTable: drizzle_orm_pg_core.PgTableWithColumns<{
235
235
  tableName: "users";
236
236
  dataType: "string";
237
237
  columnType: "PgEnumColumn";
238
- data: "active" | "pending" | "inactive";
238
+ data: "active" | "inactive" | "pending";
239
239
  driverParam: string;
240
240
  notNull: false;
241
241
  hasDefault: true;
@@ -1308,7 +1308,7 @@ declare const authSchema: {
1308
1308
  tableName: "users";
1309
1309
  dataType: "string";
1310
1310
  columnType: "PgEnumColumn";
1311
- data: "active" | "pending" | "inactive";
1311
+ data: "active" | "inactive" | "pending";
1312
1312
  driverParam: string;
1313
1313
  notNull: false;
1314
1314
  hasDefault: true;
@@ -252,7 +252,7 @@ declare const usersTable: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
252
252
  tableName: "users";
253
253
  dataType: "string";
254
254
  columnType: "SQLiteText";
255
- data: "active" | "pending" | "inactive";
255
+ data: "active" | "inactive" | "pending";
256
256
  driverParam: string;
257
257
  notNull: false;
258
258
  hasDefault: true;
@@ -265,7 +265,7 @@ declare const usersTable: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
265
265
  generated: undefined;
266
266
  }, {}, {
267
267
  length: number;
268
- $type: "active" | "pending" | "inactive";
268
+ $type: "active" | "inactive" | "pending";
269
269
  }>;
270
270
  roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
271
271
  name: "role_id";
@@ -1476,7 +1476,7 @@ declare const authSchema: {
1476
1476
  tableName: "users";
1477
1477
  dataType: "string";
1478
1478
  columnType: "SQLiteText";
1479
- data: "active" | "pending" | "inactive";
1479
+ data: "active" | "inactive" | "pending";
1480
1480
  driverParam: string;
1481
1481
  notNull: false;
1482
1482
  hasDefault: true;
@@ -1489,7 +1489,7 @@ declare const authSchema: {
1489
1489
  generated: undefined;
1490
1490
  }, {}, {
1491
1491
  length: number;
1492
- $type: "active" | "pending" | "inactive";
1492
+ $type: "active" | "inactive" | "pending";
1493
1493
  }>;
1494
1494
  roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
1495
1495
  name: "role_id";
@@ -105,7 +105,7 @@ interface AuthClientConfig {
105
105
  /** Request timeout in milliseconds (default: 30000) */
106
106
  timeout?: number;
107
107
  }
108
- type OAuthProvider = 'google';
108
+ type OAuthProvider = 'google' | 'github';
109
109
  interface OAuthLoginOptions {
110
110
  /** Same-origin frontend path after OAuth completes. */
111
111
  returnTo?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-auth",
3
- "version": "3.3.1",
3
+ "version": "3.4.0",
4
4
  "description": "Authentication and authorization library for najm framework",
5
5
  "type": "module",
6
6
  "files": [