better-auth-audit-logs 0.1.0 → 0.1.1
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/LICENSE +21 -0
- package/README.md +8 -0
- package/package.json +28 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ejiro Asiuwhu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# better-auth-audit-logs
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/better-auth-audit-logs)
|
|
4
|
+
[](https://www.npmjs.com/package/better-auth-audit-logs)
|
|
5
|
+
[](https://github.com/ejirocodes/better-auth-audit-logs/blob/main/LICENSE)
|
|
6
|
+
|
|
3
7
|
Audit log plugin for [Better Auth](https://better-auth.com). Captures auth lifecycle events, stores structured log entries with IP and user agent, and exposes query endpoints — with PII redaction, custom storage backends, and a manual insertion escape hatch.
|
|
4
8
|
|
|
5
9
|
## Requirements
|
|
@@ -364,3 +368,7 @@ auditLog({
|
|
|
364
368
|
},
|
|
365
369
|
})
|
|
366
370
|
```
|
|
371
|
+
|
|
372
|
+
## License
|
|
373
|
+
|
|
374
|
+
[MIT](./LICENSE)
|
package/package.json
CHANGED
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth-audit-logs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Audit log plugin for Better Auth. Captures auth lifecycle events, stores structured log entries, and exposes query endpoints with PII redaction and custom storage backends.",
|
|
4
5
|
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Ejiro Asiuwhu <ejiroasiuwhu10@gmail.com>",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/ejirocodes/better-auth-audit-logs"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/ejirocodes/better-auth-audit-logs#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/ejirocodes/better-auth-audit-logs/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"better-auth",
|
|
18
|
+
"better-auth-plugin",
|
|
19
|
+
"audit-log",
|
|
20
|
+
"audit-trail",
|
|
21
|
+
"auth",
|
|
22
|
+
"authentication",
|
|
23
|
+
"security",
|
|
24
|
+
"logging",
|
|
25
|
+
"compliance",
|
|
26
|
+
"pii-redaction",
|
|
27
|
+
"session-tracking"
|
|
28
|
+
],
|
|
5
29
|
"main": "./dist/index.cjs",
|
|
6
30
|
"types": "./dist/index.d.ts",
|
|
7
31
|
"exports": {
|
|
@@ -18,7 +42,9 @@
|
|
|
18
42
|
},
|
|
19
43
|
"typesVersions": {
|
|
20
44
|
"*": {
|
|
21
|
-
"client": [
|
|
45
|
+
"client": [
|
|
46
|
+
"./dist/client.d.ts"
|
|
47
|
+
]
|
|
22
48
|
}
|
|
23
49
|
},
|
|
24
50
|
"files": [
|