🐛 fix: #143 Use custom oauth setting during token gen for new account

Closes: #143
This commit is contained in:
Nathan Smith 2024-08-30 17:33:38 -04:00
parent 4919fe23eb
commit 061b8bdab9

View file

@ -103,7 +103,11 @@ export class AccountSettings {
.addButton((button) => {
button.setButtonText("Generate Token");
button.onClick(async () => {
const authResult = await auth(this.tokenVerification.bind(this))({
const clientId = this.newAccount?.customOAuth ? this.newAccount.clientId : undefined;
const authResult = await auth(
this.tokenVerification.bind(this),
clientId,
)({
type: "oauth",
});
this.authModal?.close();