Skip to content

Commit

Permalink
📝 update plugins doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzLuke96 committed Aug 11, 2024
1 parent a4c559b commit 5a45093
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ We provide ClientPlugin to expand Client capabilities.

simple example
```ts
import { plugins } from "@stable-canvas/comfy"
export class LoggingPlugin extends plugins.ClientPlugin {
import { ClientPlugin } from "@stable-canvas/comfy"
export class LoggingPlugin extends ClientPlugin {
constructor() {
super();

Expand All @@ -423,12 +423,12 @@ export class LoggingPlugin extends plugins.ClientPlugin {
### ComfyUI Login Auth
For example, sometimes you may need to provide node authentication capabilities, and you may have many solutions to implement your ComfyUI permission management

If you use the [ComfyUI-Login](https://github.com/liusida/ComfyUI-Login/tree/main) extension, you can use the built-in `LoginAuthPlugin` to configure the Client to support authentication
If you use the [ComfyUI-Login](https://github.com/liusida/ComfyUI-Login/tree/main) extension, you can use the built-in `plugins.LoginAuthPlugin` to configure the Client to support authentication
```ts
import { ComfyUIApiClient, LoginAuthPlugin } from "@stable-canvas/comfyui-client";
import { ComfyUIApiClient, plugins } from "@stable-canvas/comfyui-client";
const client = new ComfyUIApiClient()
client.use(
new LoginAuthPlugin({
new plugins.LoginAuthPlugin({
token: "MY_TOP_SECRET"
})
);
Expand Down

0 comments on commit 5a45093

Please sign in to comment.