Skip to content

Commit 90bb654

Browse files
committed
fix(plugin-auth): spell IdentityObjectsPlugin's optionalDependencies as a literal the init-service gate reads
Claude-Session: https://claude.ai/code/session_01WkL6Eijt432S1Y7ekb6ovQ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1a50789 commit 90bb654

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎packages/plugins/plugin-auth/src/identity-objects-plugin.ts‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ import { authIdentityManifest } from './manifest.js';
5050
/** The kernel plugin name of {@link IdentityObjectsPlugin}. */
5151
export const IDENTITY_OBJECTS_PLUGIN_NAME = 'com.objectstack.auth.identity-objects';
5252

53-
/** `AuthPlugin`'s kernel plugin name; its `init()` registers the `auth` service. */
54-
const AUTH_KERNEL_PLUGIN_NAME = 'com.objectstack.auth';
55-
5653
export interface IdentityObjectsPluginOptions {
5754
/**
5855
* The datasource that owns the identity tables, with the same meaning as
@@ -72,8 +69,12 @@ export class IdentityObjectsPlugin implements Plugin {
7269
version = '1.0.0';
7370
/** ObjectQL registers the `manifest` service this plugin registers through. */
7471
dependencies: string[] = ['com.objectstack.engine.objectql'];
75-
/** Ordered ahead when composed, so `init()` can refuse the pair. */
76-
optionalDependencies: string[] = [AUTH_KERNEL_PLUGIN_NAME];
72+
/**
73+
* `AuthPlugin`'s kernel plugin name: ordered ahead when composed, so its
74+
* `auth` service is registered by the time `init()` asks, and the pair is
75+
* refused there.
76+
*/
77+
optionalDependencies: string[] = ['com.objectstack.auth'];
7778
requiresServices: string[] = ['manifest'];
7879

7980
private readonly options: IdentityObjectsPluginOptions;

0 commit comments

Comments
 (0)