File tree Expand file tree Collapse file tree
packages/plugins/plugin-auth/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,9 +50,6 @@ import { authIdentityManifest } from './manifest.js';
5050/** The kernel plugin name of {@link IdentityObjectsPlugin}. */
5151export 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-
5653export 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 ;
You can’t perform that action at this time.
0 commit comments