mcp
This commit is contained in:
@@ -4,8 +4,6 @@ import { Observable, finalize, shareReplay, tap, throwError } from 'rxjs';
|
||||
import {
|
||||
AuthTokenResponse,
|
||||
LoginRequest,
|
||||
McpApiKeyResponse,
|
||||
McpApiKeyStatus,
|
||||
PublicUser,
|
||||
PublicUserSearchResult,
|
||||
RegisterRequest,
|
||||
@@ -66,18 +64,6 @@ export class AuthService {
|
||||
.pipe(tap((user) => this.storeUser(user)));
|
||||
}
|
||||
|
||||
getMcpApiKeyStatus(): Observable<McpApiKeyStatus> {
|
||||
return this.http.get<McpApiKeyStatus>(`${this.apiUrl}/me/mcp-api-key`);
|
||||
}
|
||||
|
||||
createMcpApiKey(): Observable<McpApiKeyResponse> {
|
||||
return this.http.post<McpApiKeyResponse>(`${this.apiUrl}/me/mcp-api-key`, {});
|
||||
}
|
||||
|
||||
revokeMcpApiKey(): Observable<McpApiKeyStatus> {
|
||||
return this.http.delete<McpApiKeyStatus>(`${this.apiUrl}/me/mcp-api-key`);
|
||||
}
|
||||
|
||||
accessToken(): string | null {
|
||||
return this.storage?.getItem(ACCESS_TOKEN_KEY) ?? null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user