Skip to content

Commit b85ef97

Browse files
authored
Update plugin_credentialManager.md
1 parent 07122de commit b85ef97

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/plugin_credentialManager.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,18 @@ password), instead of failing `isomorphic-git` could interactively prompt the us
3939
A `credentialManager` plugin must implement the following API:
4040

4141
```ts
42+
interface IAuthJSON {
43+
username?: string;
44+
password?: string;
45+
token?: string;
46+
oauth2format?: string;
47+
[x: string]: JSON;
48+
}
49+
4250
interface GitCredentialManagerPlugin {
43-
fill ({ url: string }): Promise<JSON>;
44-
approved ({ url: string, auth: JSON }): Promise<void>;
45-
rejected ({ url: string, auth: JSON }): Promise<void>;
51+
fill ({ url: string }): Promise<IAuthJSON>;
52+
approved ({ url: string, auth: IAuthJSON }): Promise<void>;
53+
rejected ({ url: string, auth: IAuthJSON }): Promise<void>;
4654
}
4755
```
4856

0 commit comments

Comments
 (0)