mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat(ocm-cli): workspace repo sync and manager token targeting (#233)
This commit is contained in:
1 parent
e12f319592
commit
a86e4b1238
69 files changed
+4858
-161
No files matched your search
@@ -294,3 +294,17 @@ export async function updateOpenCodeServerAuth(password: string | null): Promise
|
||||
body: JSON.stringify({ password }),
|
||||
})
|
||||
}
|
||||
|
||||
export interface ManagerTokenResponse {
|
||||
token: string
|
||||
}
|
||||
|
||||
export async function getManagerToken(): Promise<ManagerTokenResponse> {
|
||||
return fetchWrapper(`${API_BASE_URL}/api/settings/manager-token`)
|
||||
}
|
||||
|
||||
export async function rotateManagerToken(): Promise<ManagerTokenResponse> {
|
||||
return fetchWrapper(`${API_BASE_URL}/api/settings/manager-token/rotate`, {
|
||||
method: 'POST',
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user