@mastra/auth-okta 0.2.4 → 0.2.5

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/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LRUCache } from "lru-cache";
2
2
  import { createRemoteJWKSet, jwtVerify } from "jose";
3
- //#region ../../packages/_internals/auth/dist/ee-btY6vXIW.js
3
+ //#region ../../packages/_internals/auth/dist/ee-XRuijAiF.js
4
4
  /**
5
5
  * FGA enforcement utility for checking fine-grained authorization.
6
6
  *
@@ -112,7 +112,7 @@ function resolvePermissionsFromMapping(roles, mapping) {
112
112
  //#endregion
113
113
  //#region src/rbac-provider.ts
114
114
  /** Default cache TTL in milliseconds (60 seconds) */
115
- const DEFAULT_CACHE_TTL_MS = 60 * 1e3;
115
+ const DEFAULT_CACHE_TTL_MS = 6e4;
116
116
  /** Default max cache size (number of users) */
117
117
  const DEFAULT_CACHE_MAX_SIZE = 1e3;
118
118
  /** Page size for the Okta list-user-groups call (Okta max is 200) */
@@ -892,7 +892,7 @@ var MastraAuthOkta = class extends MastraAuthProvider {
892
892
  const stateId = state.includes("|") ? state.split("|")[0] : state;
893
893
  const actualRedirectUri = redirectUri ?? this.redirectUri;
894
894
  stateStore.set(stateId, {
895
- expiresAt: Date.now() + 600 * 1e3,
895
+ expiresAt: Date.now() + 6e5,
896
896
  redirectUri: actualRedirectUri
897
897
  });
898
898
  for (const [key, value] of stateStore.entries()) if (value.expiresAt < Date.now()) stateStore.delete(key);