mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-09 05:57:40 +02:00
15 lines
442 B
TypeScript
15 lines
442 B
TypeScript
|
import { inject, Injectable } from "@angular/core";
|
||
|
|
||
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||
|
|
||
|
import { UpdateKeyRequest } from "./request/update-key.request";
|
||
|
|
||
|
@Injectable()
|
||
|
export class UserKeyRotationApiService {
|
||
|
readonly apiService = inject(ApiService);
|
||
|
|
||
|
postUserKeyUpdate(request: UpdateKeyRequest): Promise<any> {
|
||
|
return this.apiService.send("POST", "/accounts/key", request, true, false);
|
||
|
}
|
||
|
}
|