Skip to content

Commit

Permalink
fix: pass decrypted client secret for oauth (#374)
Browse files Browse the repository at this point in the history
* fix: pass decrypted client id for oauth

@W-8894798@ - client secret is being passed as an encrypted value, now passing as decrypted value

* chore: update for review comments
  • Loading branch information
peternhale authored Feb 17, 2021
1 parent 2b3608b commit 63bf84e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ export class User extends AsyncCreatable<User.Options> {
} = await this.createUserInternal(fields);

// Create the initial auth info
const adminUserAuthFields: AuthFields = this.org.getConnection().getAuthInfoFields();
const authInfo = await AuthInfo.create({ username: this.org.getUsername() });
const adminUserAuthFields: AuthFields = authInfo.getFields(true);

// Setup oauth options for the new user
const oauthOptions = {
Expand Down

0 comments on commit 63bf84e

Please sign in to comment.