@krak-stack/auth 0.2.26 → 0.2.27
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 +6 -0
- package/dist/server/middleware.js +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @krak-stack/auth
|
|
2
2
|
|
|
3
|
+
## 0.2.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8254748: Include trusted OpenTelemetry user.full_name and user.email annotations for cookie sessions and user-owned API keys. Preserve effective-user attribution during impersonation and clear inherited profile fields for anonymous and organization-owned credentials.
|
|
8
|
+
|
|
3
9
|
## 0.2.26
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -72,6 +72,8 @@ const sessionAnnotations = (session) => {
|
|
|
72
72
|
(session.authMethod.type === "cookie" ||
|
|
73
73
|
session.authMethod.apiKey.configId === "user")) {
|
|
74
74
|
attributes["user.id"] = session.user.id;
|
|
75
|
+
attributes["user.full_name"] = session.user.name;
|
|
76
|
+
attributes["user.email"] = session.user.email;
|
|
75
77
|
}
|
|
76
78
|
if (session.session.activeOrganizationId) {
|
|
77
79
|
attributes["organization.id"] = session.session.activeOrganizationId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krak-stack/auth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27",
|
|
4
4
|
"description": "Effect HttpApi clients and schemas for KrakStack Auth.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"react-qr-code": "^2.2.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@krak-stack/registry": "0.1.
|
|
79
|
+
"@krak-stack/registry": "0.1.55"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@krak-stack/registry": "^0.1.52",
|