Merge pull request #148 from nathonius/fix/142/oauth-404

🐛 fix: #142 Trim oauth client id of whitespace
This commit is contained in:
Nathan 2024-08-30 18:27:14 -04:00 committed by GitHub
commit be2aa15f32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,7 +90,7 @@ export class AccountSettings {
text.setValue(this.newAccount!.clientId ?? "");
text.setPlaceholder("Client ID");
text.onChange((value) => {
this.newAccount!.clientId = value;
this.newAccount!.clientId = value.trim();
});
});
}
@ -120,7 +120,7 @@ export class AccountSettings {
text.setPlaceholder("Personal Access Token / OAuth Token");
text.setValue(this.newAccount!.token);
text.onChange((value) => {
this.newAccount!.token = value;
this.newAccount!.token = value.trim();
});
});
@ -195,7 +195,7 @@ export class AccountSettings {
text.setValue(account.clientId ?? "");
text.setPlaceholder("Client ID");
text.onChange((value) => {
account.clientId = value;
account.clientId = value.trim();
void this.saveCallback();
});
});
@ -227,7 +227,7 @@ export class AccountSettings {
text.setPlaceholder("Personal Access Token / OAuth Token");
text.setValue(account.token);
text.onChange((value) => {
account.token = value;
account.token = value.trim();
void this.saveCallback();
});
});