We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1cf3c3 commit a8c5782Copy full SHA for a8c5782
1 file changed
crates/fig_auth/src/builder_id.rs
@@ -548,13 +548,11 @@ pub async fn poll_create_token(
548
549
/// Write credentials to ~/.aws/amazonq/creds.json
550
pub async fn write_credentials_to_file(token: &BuilderIdToken) -> Result<()> {
551
- // Create credentials JSON
552
let creds = serde_json::json!({
553
"access_token": token.access_token.0.clone(),
554
"region": token.region.clone(),
555
});
556
557
- // Create environment instance
558
let path = credential_file_path()?;
559
std::fs::write(&path, serde_json::to_string_pretty(&creds)?)?;
560
0 commit comments