mirror of
https://github.com/bitwarden/browser
synced 2025-12-31 07:33:23 +00:00
Add sponsorship pre validate endpoint (#564)
This commit is contained in:
@@ -1579,6 +1579,13 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
'/organization/sponsorship/sponsored/' + sponsoringOrgId,
|
||||
null, true, false);
|
||||
}
|
||||
|
||||
async postPreValidateSponsorshipToken(sponsorshipToken: string): Promise<boolean> {
|
||||
const r = await this.send('POST', '/organization/sponsorship/validate-token?sponsorshipToken=' + encodeURIComponent(sponsorshipToken),
|
||||
null, true, true);
|
||||
return r as boolean;
|
||||
}
|
||||
|
||||
async postRedeemSponsorship(sponsorshipToken: string, request: OrganizationSponsorshipRedeemRequest): Promise<void> {
|
||||
return await this.send('POST', '/organization/sponsorship/redeem?sponsorshipToken=' + encodeURIComponent(sponsorshipToken),
|
||||
request, true, false);
|
||||
|
||||
Reference in New Issue
Block a user