@passflow/core 0.43.1 → 0.44.0

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.d.cts CHANGED
@@ -5218,8 +5218,19 @@ export declare class TenantUserMembership {
5218
5218
  export declare class TenantService {
5219
5219
  private tenantApi;
5220
5220
  private scopes;
5221
+ private readStoredAccessToken?;
5221
5222
  private logger;
5222
- constructor(tenantApi: TenantAPI, scopes: string[], logger?: Logger);
5223
+ private tenantScopeWarned;
5224
+ /**
5225
+ * @param readStoredAccessToken Returns the stored access token. Without it the service never
5226
+ * warns about a token that lacks tenant membership.
5227
+ */
5228
+ constructor(tenantApi: TenantAPI, scopes: string[], logger?: Logger, readStoredAccessToken?: (() => string | undefined) | undefined);
5229
+ /**
5230
+ * Warns once when the stored access token has no `passflow_tm` claim, which means the sign-in
5231
+ * did not ask for the tenant scope. Never throws: a missing or unparseable token is ignored.
5232
+ */
5233
+ private warnIfNoTenantMembership;
5223
5234
  /**
5224
5235
  * Handle Passflow API errors
5225
5236
  * @param error The error object
package/dist/index.d.ts CHANGED
@@ -5218,8 +5218,19 @@ export declare class TenantUserMembership {
5218
5218
  export declare class TenantService {
5219
5219
  private tenantApi;
5220
5220
  private scopes;
5221
+ private readStoredAccessToken?;
5221
5222
  private logger;
5222
- constructor(tenantApi: TenantAPI, scopes: string[], logger?: Logger);
5223
+ private tenantScopeWarned;
5224
+ /**
5225
+ * @param readStoredAccessToken Returns the stored access token. Without it the service never
5226
+ * warns about a token that lacks tenant membership.
5227
+ */
5228
+ constructor(tenantApi: TenantAPI, scopes: string[], logger?: Logger, readStoredAccessToken?: (() => string | undefined) | undefined);
5229
+ /**
5230
+ * Warns once when the stored access token has no `passflow_tm` claim, which means the sign-in
5231
+ * did not ask for the tenant scope. Never throws: a missing or unparseable token is ignored.
5232
+ */
5233
+ private warnIfNoTenantMembership;
5223
5234
  /**
5224
5235
  * Handle Passflow API errors
5225
5236
  * @param error The error object