@imtbl/auth 2.12.5-alpha.11 → 2.12.5-alpha.12

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/package.json +6 -6
  2. package/src/Auth.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imtbl/auth",
3
- "version": "2.12.5-alpha.11",
3
+ "version": "2.12.5-alpha.12",
4
4
  "description": "Authentication SDK for Immutable",
5
5
  "author": "Immutable",
6
6
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
@@ -25,18 +25,18 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@imtbl/generated-clients": "2.12.5-alpha.11",
29
- "@imtbl/metrics": "2.12.5-alpha.11",
28
+ "@imtbl/generated-clients": "2.12.5-alpha.12",
29
+ "@imtbl/metrics": "2.12.5-alpha.12",
30
30
  "localforage": "^1.10.0",
31
31
  "oidc-client-ts": "3.4.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@swc/core": "^1.3.36",
34
+ "@swc/core": "^1.4.2",
35
35
  "@swc/jest": "^0.2.37",
36
36
  "@types/jest": "^29.5.12",
37
- "@types/node": "^18.14.2",
37
+ "@types/node": "^22.10.7",
38
38
  "@jest/test-sequencer": "^29.7.0",
39
- "jest": "^29.4.3",
39
+ "jest": "^29.7.0",
40
40
  "jest-environment-jsdom": "^29.4.3",
41
41
  "ts-node": "^10.9.1",
42
42
  "tsup": "^8.3.0",
package/src/Auth.ts CHANGED
@@ -766,7 +766,7 @@ export class Auth {
766
766
  const newOidcUser = await this.userManager.signinSilent();
767
767
  if (newOidcUser) {
768
768
  const user = Auth.mapOidcUserToDomainModel(newOidcUser);
769
- // Emit TOKEN_REFRESHED event so consumers (e.g., auth-nextjs) can sync
769
+ // Emit TOKEN_REFRESHED event so consumers (e.g., auth-next-client) can sync
770
770
  // the new tokens to their session. This is critical for refresh token
771
771
  // rotation - without this, the server-side session may have stale tokens.
772
772
  this.eventEmitter.emit(AuthEvents.TOKEN_REFRESHED, user);
@@ -824,7 +824,7 @@ export class Auth {
824
824
 
825
825
  if (removeUser) {
826
826
  // Emit USER_REMOVED event BEFORE removing user so consumers can react
827
- // (e.g., auth-nextjs can clear the NextAuth session)
827
+ // (e.g., auth-next-client can clear the NextAuth session)
828
828
  this.eventEmitter.emit(AuthEvents.USER_REMOVED, {
829
829
  reason: removeReason,
830
830
  error: errorMessage,