Skip to content

Commit 512208f

Browse files
committed
Add comment to explain sync workflow
1 parent d00e05b commit 512208f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/cli/src/sync.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ pub async fn config_sync(
190190
if let Some(client_secret) = provider.client_secret.as_deref() {
191191
Some(encrypter.encrypt_to_string(client_secret.as_bytes())?)
192192
} else if let Some(mut siwa) = provider.sign_in_with_apple.clone() {
193+
// if private key file is defined and not private key (raw), we populate the private key
194+
// to hold the content of the private key file. private key (raw) takes precedence so
195+
// both can be defined without issues
193196
if siwa.private_key.is_none() {
194197
if let Some(private_key_file) = siwa.private_key_file.take() {
195198
let key = tokio::fs::read_to_string(private_key_file).await?;

0 commit comments

Comments
 (0)