Skip to content

Commit 568a6e6

Browse files
committed
fixup! feat(invite-link): re-structure invite-link-client to use and expose new invite link api
1 parent 58a8855 commit 568a6e6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

crates/bitwarden-organization-invite-link/src/invite_link_client.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl InviteLinkClient {
105105

106106
let mut ctx = self.key_store.context();
107107
let org_key = SymmetricKeySlotId::Organization(organization_id);
108-
let invite_key = invite.invite_key_from_organization_key(org_key, &mut ctx)?;
108+
let invite_key = invite.unseal_invite_key_with_organization_key(org_key, &mut ctx)?;
109109
let invite_secret = invite.get_invite_secret(invite_key, &mut ctx)?;
110110
Ok(invite_secret)
111111
}
@@ -149,7 +149,8 @@ impl InviteLinkClient {
149149
let mut ctx = self.key_store.context();
150150

151151
// Recover the invite key from the invite secret the invitee holds.
152-
let invite_key = invite.invite_key_from_invite_secret(&invite_secret, &mut ctx)?;
152+
let invite_key =
153+
invite.unseal_invite_key_with_invite_secret(&invite_secret, &mut ctx)?;
153154

154155
// Enroll into account recovery when requested. Verify the account-recovery public key
155156
// against the organization public-key thumbprint bound into the invite before

0 commit comments

Comments
 (0)