@quanticjs/auth-web-bff 4.4.0 → 4.4.2

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.
@@ -80,7 +80,7 @@ let BffService = class BffService {
80
80
  refreshToken: tokenSet.refresh_token,
81
81
  idToken: tokenSet.id_token,
82
82
  expiresAt: tokenSet.expires_at ?? Math.floor(Date.now() / 1000) + 300,
83
- keycloakId: claims.sub,
83
+ id: claims.sub,
84
84
  email: claims.email ?? '',
85
85
  displayName: claims.name ?? claims.preferred_username ?? '',
86
86
  roles: extractRealmRoles(tokenSet.access_token),
@@ -155,7 +155,7 @@ let BffService = class BffService {
155
155
  if (!session)
156
156
  return null;
157
157
  return {
158
- keycloakId: session.keycloakId,
158
+ id: session.id,
159
159
  email: session.email,
160
160
  displayName: session.displayName,
161
161
  roles: session.roles,
@@ -19,7 +19,7 @@ export interface SessionData {
19
19
  refreshToken: string;
20
20
  idToken?: string;
21
21
  expiresAt: number;
22
- keycloakId: string;
22
+ id: string;
23
23
  email: string;
24
24
  displayName: string;
25
25
  roles: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quanticjs/auth-web-bff",
3
- "version": "4.4.0",
3
+ "version": "4.4.2",
4
4
  "description": "BFF authentication module — Keycloak OIDC, Redis sessions, httpOnly cookies",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "clean": "rm -rf dist"
10
10
  },
11
11
  "dependencies": {
12
- "@quanticjs/core": "^4.4.0"
12
+ "@quanticjs/core": "^4.4.2"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "@nestjs/common": "^10.0.0 || ^11.0.0",