1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

getEnterprisePortalSignInToken api (#105)

This commit is contained in:
Kyle Spearrin 2020-05-27 15:21:53 -04:00 committed by Hinton
parent 4d776ca0ef
commit 6e52c2846d
2 changed files with 6 additions and 0 deletions

View File

@ -139,6 +139,7 @@ export abstract class ApiService {
postAccountRecoverDelete: (request: DeleteRecoverRequest) => Promise<any>;
postAccountRecoverDeleteToken: (request: VerifyDeleteRecoverRequest) => Promise<any>;
postAccountKdf: (request: KdfRequest) => Promise<any>;
getEnterprisePortalSignInToken: () => Promise<string>;
getFolder: (id: string) => Promise<FolderResponse>;
postFolder: (request: FolderRequest) => Promise<FolderResponse>;

View File

@ -321,6 +321,11 @@ export class ApiService implements ApiServiceAbstraction {
return this.send('POST', '/accounts/kdf', request, true, false);
}
async getEnterprisePortalSignInToken(): Promise<string> {
const r = await this.send('GET', '/accounts/enterprise-portal-signin-token', null, true, true);
return r as string;
}
// Folder APIs
async getFolder(id: string): Promise<FolderResponse> {