Skip to content

Commit

Permalink
feat(pool): add password to fetched scratch org from pool (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
thvd authored Nov 6, 2024
1 parent 2445302 commit 299859b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/core/scratchorg/pool/PoolFetchImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,14 @@ export default class PoolFetchImpl extends PoolBaseImpl {


const oauth2Options = AuthInfo.parseSfdxAuthUrl(soDetail.sfdxAuthUrl);
const authInfo = await AuthInfo.create({ oauth2Options });
await authInfo.save({...authInfo.getFields(),isScratch:true,devHubUsername:this.hubOrg.getUsername(),expirationDate:soDetail.expiryDate});
const authInfo = await AuthInfo.create({oauth2Options});
await authInfo.save({
...authInfo.getFields(),
isScratch: true,
devHubUsername: this.hubOrg.getUsername(),
expirationDate: soDetail.expiryDate,
password: soDetail.password
});

await authInfo.handleAliasAndDefaultSettings({
alias: this.alias?this.alias:soDetail.alias,
Expand Down

0 comments on commit 299859b

Please sign in to comment.