Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

collab: Switch to new encryption format for access tokens (#27691)

Marshall Bowersd0ae604eda6d
diff --git a/crates/collab/src/auth.rs b/crates/collab/src/auth.rs
index b5cf278f706..0c505647691 100644
--- a/crates/collab/src/auth.rs
+++ b/crates/collab/src/auth.rs
@@ -156,13 +156,7 @@ pub fn encrypt_access_token(access_token: &str, public_key: String) -> Result<St
use rpc::auth::EncryptionFormat;
/// The encryption format to use for the access token.
- ///
- /// Currently we're using the original encryption format to avoid
- /// breaking compatibility with older clients.
- ///
- /// Once enough clients are capable of decrypting the newer encryption
- /// format we can start encrypting with `EncryptionFormat::V1`.
- const ENCRYPTION_FORMAT: EncryptionFormat = EncryptionFormat::V0;
+ const ENCRYPTION_FORMAT: EncryptionFormat = EncryptionFormat::V1;
let native_app_public_key =
rpc::auth::PublicKey::try_from(public_key).context("failed to parse app public key")?;