Skip to content

Commit

Permalink
Enable sessionToken to be unset in
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksrandall committed Jan 27, 2025
1 parent ce53290 commit a989eaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/s3/credentials.zig
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ pub const S3Credentials = struct {
} else {
return globalObject.throwInvalidArgumentTypeValue("bucket", "string", js_value);
}
} else if (js_value.isNull()) {
new_credentials.credentials.sessionToken = "";
new_credentials.changed_credentials = true;
}
}

Expand Down

0 comments on commit a989eaa

Please sign in to comment.