@nauth-toolkit/database-typeorm-postgres 0.1.3 → 0.1.6

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.
Files changed (2) hide show
  1. package/README.md +4 -58
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,63 +1,9 @@
1
1
  # @nauth-toolkit/database-typeorm-postgres
2
2
 
3
- PostgreSQL database adapter for nauth-toolkit using TypeORM.
3
+ PostgreSQL TypeORM adapter for nauth-toolkit
4
4
 
5
- ## Installation
5
+ ## Preview Release Notice
6
6
 
7
- ```bash
8
- yarn add @nauth-toolkit/core @nauth-toolkit/database-typeorm-postgres typeorm pg
9
- ```
7
+ **This is a preview release for internal testing. Do not use in production yet.**
10
8
 
11
- ## Usage
12
-
13
- ```typescript
14
- import { Module } from '@nestjs/common';
15
- import { TypeOrmModule } from '@nestjs/typeorm';
16
- import { AuthModule } from '@nauth-toolkit/core';
17
- import { getNAuthEntities } from '@nauth-toolkit/database-typeorm-postgres';
18
-
19
- @Module({
20
- imports: [
21
- TypeOrmModule.forRoot({
22
- type: 'postgres',
23
- host: process.env.DB_HOST,
24
- port: 5432,
25
- username: process.env.DB_USER,
26
- password: process.env.DB_PASSWORD,
27
- database: process.env.DB_NAME,
28
- entities: getNAuthEntities(), // ✅ Register entities here
29
- synchronize: false, // Use migrations in production!
30
- }),
31
- AuthModule.forRoot({
32
- jwt: {
33
- accessToken: { secret: process.env.JWT_SECRET },
34
- refreshToken: { secret: process.env.JWT_REFRESH_SECRET },
35
- },
36
- // ... other config
37
- }),
38
- ],
39
- })
40
- export class AppModule {}
41
- ```
42
-
43
- ## Features
44
-
45
- - ✅ Native UUID support
46
- - ✅ JSONB for metadata storage
47
- - ✅ Native array types
48
- - ✅ All nauth-toolkit entities included
49
- - ✅ Optimized indexes for performance
50
-
51
- ## Entities
52
-
53
- - `User` - User accounts and authentication data
54
- - `Session` - Active user sessions
55
- - `SocialAccount` - OAuth provider linkages
56
- - `MFADevice` - Multi-factor authentication devices
57
- - `VerificationToken` - Email/phone verification tokens
58
- - `ChallengeSession` - Temporary challenge sessions
59
- - `LoginAttempt` - Login attempt audit logs
60
-
61
- ## License
62
-
63
- MIT
9
+ This package is part of nauth-toolkit and is currently in early access/preview. Features and APIs may change between releases. For production use, please wait for the stable v1.0 release.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nauth-toolkit/database-typeorm-postgres",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "PostgreSQL TypeORM adapter for nauth-toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "format:check": "prettier --check \"src/**/*.ts\""
15
15
  },
16
16
  "peerDependencies": {
17
- "@nauth-toolkit/core": "^0.1.3",
17
+ "@nauth-toolkit/core": "^0.1.6",
18
18
  "typeorm": "^0.3.20",
19
19
  "pg": "^8.0.0"
20
20
  },
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",
33
- "tag": "preview"
33
+ "tag": "latest"
34
34
  },
35
35
  "license": "UNLICENSED",
36
36
  "keywords": [