mirror of
https://github.com/nathonius/obsidian-github-link.git
synced 2026-07-22 09:20:25 +00:00
Merge pull request #147 from nathonius/fix/143/use-custom-oauth
🐛 fix: #143 Use custom oauth setting during token gen for new account
This commit is contained in:
commit
7aa0c14e01
1 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue