Class McpAccessTokenService
Inheritance
McpAccessTokenService
Assembly: Glitch9.AIDevKit.dll
public sealed class McpAccessTokenService
Methods
|
Edit this page
View Source
Returns true if access token is refreshed.
Returns false if no action was taken (e.g. token already present).
Declaration
public UniTask<bool> EnsureAccessTokensAsync(Mcp mcp, CancellationToken ct)
Parameters
Returns
| Type |
Description |
| UniTask<bool> |
|
|
Edit this page
View Source
Declaration
public void RegisterTokenProvider(string serverLabel, IOAuthTokenProvider provider)
Parameters
| Type |
Name |
Description |
| string |
serverLabel |
|
| IOAuthTokenProvider |
provider |
|
|
Edit this page
View Source
Declaration
public bool UnregisterTokenProvider(string serverLabel)
Parameters
| Type |
Name |
Description |
| string |
serverLabel |
|
Returns
Extension Methods