@fengsoft/auth-db 0.1.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+ All notable changes to this package will be documented in this file.
4
+
5
+ ## 0.1.0
6
+
7
+ - Initial public release.
package/LICENSE ADDED
@@ -0,0 +1,100 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
+ owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities
16
+ that control, are controlled by, or are under common control with that entity.
17
+ For the purposes of this definition, "control" means (i) the power, direct or
18
+ indirect, to cause the direction or management of such entity, whether by
19
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
23
+ permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including
26
+ but not limited to software source code, documentation source, and configuration
27
+ files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or
30
+ translation of a Source form, including but not limited to compiled object code,
31
+ generated documentation, and conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form, made
34
+ available under the License, as indicated by a copyright notice that is included
35
+ in or attached to the work.
36
+
37
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
38
+ is based on (or derived from) the Work and for which the editorial revisions,
39
+ annotations, elaborations, or other modifications represent, as a whole, an
40
+ original work of authorship.
41
+
42
+ "Contribution" shall mean any work of authorship, including the original version
43
+ of the Work and any modifications or additions to that Work or Derivative Works,
44
+ that is intentionally submitted to Licensor for inclusion in the Work by the
45
+ copyright owner or by an individual or Legal Entity authorized to submit on
46
+ behalf of the copyright owner.
47
+
48
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
49
+ of whom a Contribution has been received by Licensor and subsequently
50
+ incorporated within the Work.
51
+
52
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
53
+ License, each Contributor hereby grants to You a perpetual, worldwide,
54
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
55
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
56
+ sublicense, and distribute the Work and such Derivative Works in Source or
57
+ Object form.
58
+
59
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
60
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
61
+ no-charge, royalty-free, irrevocable patent license to make, have made, use,
62
+ offer to sell, sell, import, and otherwise transfer the Work.
63
+
64
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
65
+ Derivative Works thereof in any medium, with or without modifications, and in
66
+ Source or Object form, provided that You meet the following conditions:
67
+
68
+ You must give any other recipients of the Work or Derivative Works a copy of
69
+ this License; and
70
+
71
+ You must cause any modified files to carry prominent notices stating that You
72
+ changed the files; and
73
+
74
+ You must retain, in the Source form of any Derivative Works that You distribute,
75
+ all copyright, patent, trademark, and attribution notices from the Source form
76
+ of the Work; and
77
+
78
+ If the Work includes a "NOTICE" text file as part of its distribution, then any
79
+ Derivative Works that You distribute must include a readable copy of the
80
+ attribution notices contained within such NOTICE file.
81
+
82
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
83
+ Contribution intentionally submitted for inclusion in the Work by You to the
84
+ Licensor shall be under the terms and conditions of this License.
85
+
86
+ 6. Trademarks. This License does not grant permission to use the trade names,
87
+ trademarks, service marks, or product names of the Licensor.
88
+
89
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
90
+ writing, Licensor provides the Work on an "AS IS" BASIS, WITHOUT WARRANTIES OR
91
+ CONDITIONS OF ANY KIND, either express or implied.
92
+
93
+ 8. Limitation of Liability. In no event and under no legal theory shall any
94
+ Contributor be liable to You for damages arising as a result of this License or
95
+ out of the use or inability to use the Work.
96
+
97
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
98
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
99
+ acceptance of support, warranty, indemnity, or other liability obligations.
100
+
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # @fengsoft/auth-db
2
+
3
+ Drizzle and memory-backed auth persistence helpers for sessions, organizations, invites, and API keys.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add @fengsoft/auth-db drizzle-orm pg better-auth
9
+ ```
10
+
11
+ ## Use When
12
+
13
+ - you need Postgres-backed Better Auth persistence
14
+ - you want a memory fallback for tests and examples
15
+
16
+ ## Related Packages
17
+
18
+ - `@fengsoft/auth-core`
19
+ - `@fengsoft/foundation-db`
20
+
21
+ ## Source
22
+
23
+ - Repo: `fengsoft/auth-core`
24
+ - Docs: see the root repository README and docs app for architecture and adoption guides